From: hannes Date: Wed, 27 Apr 2005 14:35:56 +0000 (+0000) Subject: make sure that there are the full four timestamp bytes available X-Git-Tag: tcpdump-3.9.1~83 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/6091cd823cfef4a6922dfc866aac8edacbd2585e make sure that there are the full four timestamp bytes available --- diff --git a/print-chdlc.c b/print-chdlc.c index 5f650e33..ea1a197a 100644 --- a/print-chdlc.c +++ b/print-chdlc.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.32.2.6 2005-04-26 19:08:45 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.32.2.7 2005-04-27 14:35:56 hannes Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -172,7 +172,7 @@ chdlc_slarp_print(const u_char *cp, u_int length) EXTRACT_32BITS(&slarp->un.keep.yourseq), EXTRACT_16BITS(&slarp->un.keep.rel)); - if (length >= SLARP_MIN_LEN) { /* uptime-stamp is optional */ + if (length >= SLARP_MAX_LEN) { /* uptime-stamp is optional */ cp += SLARP_MIN_LEN; if (!TTEST2(*cp, 4)) goto trunc;