X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3d932490b826facb568937a1290910a1265267f5..fb8b947488c7f22b518de1df1a91e663dc7ab33c:/print-l2tp.c diff --git a/print-l2tp.c b/print-l2tp.c index b8087fcd..7546a860 100644 --- a/print-l2tp.c +++ b/print-l2tp.c @@ -22,8 +22,8 @@ */ #ifndef lint -static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-l2tp.c,v 1.13 2002-08-01 08:53:15 risso Exp $"; +static const char rcsid[] _U_ = + "@(#) $Header: /tcpdump/master/tcpdump/print-l2tp.c,v 1.17 2003-12-26 23:20:58 guy Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -244,7 +244,7 @@ static char *l2tp_error_code_general[] = { static void print_string(const u_char *dat, u_int length) { - int i; + u_int i; for (i=0; i (u_int)length) + goto trunc; + + /* If it goes past the end of the remaining length of the captured + data, we'll give up. */ TCHECK2(*ptr, len); /* After this point, no need to worry about truncation */