X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/65762781e45c25f05d40bc0bfdc3475fbe03c08e..84bb6d7572062a74dc682c8c00dbd1bd9f972ca3:/print-isoclns.c diff --git a/print-isoclns.c b/print-isoclns.c index 9ffe912d..7cf2881f 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.133.2.2 2005-04-25 09:11:04 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.133.2.3 2005-04-25 10:43:24 hannes Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -1938,7 +1938,7 @@ static int isis_print (const u_int8_t *p, u_int length) break; case ISIS_TLV_ISNEIGH_VARLEN: - if (!TTEST2(*tptr, 1) && tmp > 1) + if (!TTEST2(*tptr, 1) || tmp < 3) /* min. TLV length */ goto trunctlv; lan_alen = *tptr++; /* LAN address length */ if (lan_alen == 0) {