X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/e534e38f78ca28e849fd91eba2a962347b049faf..3c8f3e13b03380742c24070f8a7b56fe12c6b8ee:/print-pgm.c diff --git a/print-pgm.c b/print-pgm.c index 94f3465b..906b2959 100644 --- a/print-pgm.c +++ b/print-pgm.c @@ -361,7 +361,7 @@ pgm_print(netdissect_options *ndo, * and stopping if we don't have enough. */ bp += (2 * sizeof(uint16_t)); - ND_TCHECK_16BITS(bp); + ND_TCHECK_2(bp); switch (EXTRACT_BE_16BITS(bp)) { case AFNUM_INET: ND_TCHECK2(*bp, sizeof(struct in_addr));