From 988cd2bb0e8d368505897ffeabc30cfafcf1b449 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 19 Nov 2003 00:36:06 +0000 Subject: 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. --- print-rt6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'print-rt6.c') 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 */ -- cgit v1.2.1