diff options
Diffstat (limited to 'print-vtp.c')
-rw-r--r-- | print-vtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-vtp.c b/print-vtp.c index d153cc19a5fd..d69c4093e977 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; |