diff options
author | guy <guy> | 2003-11-19 00:36:06 +0000 |
---|---|---|
committer | guy <guy> | 2003-11-19 00:36:06 +0000 |
commit | 988cd2bb0e8d368505897ffeabc30cfafcf1b449 (patch) | |
tree | d7c8bc13d6f5594c2c62d5b50f14fc99b4683171 /print-rt6.c | |
parent | fe0fcd92e3ae841f7ccf84b250df1ec4afdaecbc (diff) | |
download | tcpdump-988cd2bb0e8d368505897ffeabc30cfafcf1b449.tar.gz |
Have various routines for printing non-final headers for IPv4/IPv6
return -1 if they run out of data.
Have the IPv4 and IPv6 dissectors check for non-positive return values
from those routines and quit if they see one.
Diffstat (limited to 'print-rt6.c')
-rw-r--r-- | print-rt6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-rt6.c b/print-rt6.c index 063d5cd6..822ae7cc 100644 --- a/print-rt6.c +++ b/print-rt6.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-rt6.c,v 1.25 2003-11-16 09:36:35 guy Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-rt6.c,v 1.26 2003-11-19 00:36:08 guy Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -102,6 +102,6 @@ rt6_print(register const u_char *bp, register const u_char *bp2) trunc: fputs("[|srcrt]", stdout); - return 65535; /* XXX */ + return -1; } #endif /* INET6 */ |