X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/ee68aa36460d7efeca48747f33b7f2adc0900bfb..c2d6a5db5b15f08b9e858e3fcf1e6847aaebe26b:/print-vtp.c diff --git a/print-vtp.c b/print-vtp.c index e2b1f9ff..16eea5c9 100644 --- a/print-vtp.c +++ b/print-vtp.c @@ -242,7 +242,7 @@ vtp_print(netdissect_options *ndo, */ tptr += 4; - while (tptr < (pptr+length)) { + while ((unsigned)(tptr - pptr) < length) { ND_TCHECK_1(tptr); len = GET_U_1(tptr);