diff options
author | hannes <hannes> | 2005-04-27 14:33:24 +0000 |
---|---|---|
committer | hannes <hannes> | 2005-04-27 14:33:24 +0000 |
commit | 036e5d81d2ea02dac05fce3813c3bab3035d991a (patch) | |
tree | f7697d26246c4d7b9bb2734dded9473831e7c73a /print-chdlc.c | |
parent | 0dcd9ac8585129980ed96c1bc6f09359c3c9d786 (diff) | |
download | tcpdump-036e5d81d2ea02dac05fce3813c3bab3035d991a.tar.gz |
make sure that there are the full four timestamp bytes available
Diffstat (limited to 'print-chdlc.c')
-rw-r--r-- | print-chdlc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-chdlc.c b/print-chdlc.c index 1572c5cd..08658888 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.38 2005-04-26 19:07:53 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.39 2005-04-27 14:33:24 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; |