From 7ba700b7f6e5fb17d280e2b8a3ae28866777715f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 19 Sep 2024 06:52:33 +0200 Subject: Merging upstream version 4.99.5. Signed-off-by: Daniel Baumann --- print-juniper.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'print-juniper.c') diff --git a/print-juniper.c b/print-juniper.c index 2fc0b55..f2d5c75 100644 --- a/print-juniper.c +++ b/print-juniper.c @@ -22,9 +22,7 @@ __RCSID("NetBSD: print-juniper.c,v 1.3 2007/07/25 06:31:32 dogcow Exp "); #endif -#ifdef HAVE_CONFIG_H #include -#endif #include "netdissect-stdinc.h" @@ -1331,7 +1329,8 @@ juniper_parse_header(netdissect_options *ndo, /* sanity checks */ if (tlv_type == 0 || tlv_len == 0) break; - ND_LCHECK_U(extension_length, tlv_len + JUNIPER_EXT_TLV_OVERHEAD); + ND_ICHECK_U(extension_length, <, + tlv_len + JUNIPER_EXT_TLV_OVERHEAD); if (ndo->ndo_vflag > 1) ND_PRINT("\n\t %s Extension TLV #%u, length %u, value ", -- cgit v1.2.3