summaryrefslogtreecommitdiffstats
path: root/print-juniper.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--print-juniper.c5
1 files changed, 2 insertions, 3 deletions
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 <config.h>
-#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 ",