]> The Tcpdump Group git mirrors - tcpdump/commitdiff
OSPFv3: Fix a bounds check
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 19 Apr 2019 21:36:26 +0000 (23:36 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 19 Apr 2019 21:36:38 +0000 (23:36 +0200)
Moreover:
Clean up whitespaces/indentation.

print-ospf6.c

index cec67e1d91f9a2b69dcfc1605a5b4118f9405115..b50cd5cac21c0ab6872566386a86fb2062d315ac 100644 (file)
@@ -603,9 +603,9 @@ ospf6_print_lsa(netdissect_options *ndo,
                        if (lsa_length < sizeof (nd_ipv6))
                                return (1);
                        lsa_length -= sizeof (nd_ipv6);
-                       ND_TCHECK_8(tptr);
+                       ND_TCHECK_16(tptr);
                        ND_PRINT(" forward %s",
-                              ip6addr_string(ndo, tptr));
+                                ip6addr_string(ndo, tptr));
                        tptr += sizeof(nd_ipv6);
                }