X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/11a07ed27ba5122c8cbd34e8c15bcf0b4969889d..12f66f69f7bf1ec1266ddbee90a7616cbf33696b:/print-vtp.c diff --git a/print-vtp.c b/print-vtp.c index d153cc19..d69c4093 100644 --- a/print-vtp.c +++ b/print-vtp.c @@ -241,7 +241,7 @@ vtp_print (netdissect_options *ndo, */ tptr += 4; - while (tptr < (pptr+length)) { + while ((unsigned)(tptr - pptr) < length) { ND_TCHECK_8BITS(tptr); len = *tptr;