From 179660e6a922a01715c89d3d41b9aba6feee8764 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Fri, 19 Apr 2019 23:36:26 +0200 Subject: [PATCH] OSPFv3: Fix a bounds check Moreover: Clean up whitespaces/indentation. --- print-ospf6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/print-ospf6.c b/print-ospf6.c index cec67e1d..b50cd5ca 100644 --- a/print-ospf6.c +++ b/print-ospf6.c @@ -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); } -- 2.39.5