summaryrefslogtreecommitdiff
path: root/print-pgm.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-pgm.c')
-rw-r--r--print-pgm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/print-pgm.c b/print-pgm.c
index 00e53b82..0f88db6d 100644
--- a/print-pgm.c
+++ b/print-pgm.c
@@ -364,7 +364,6 @@ pgm_print(netdissect_options *ndo,
* and stopping if we don't have enough.
*/
bp += (2 * sizeof(uint16_t));
- ND_TCHECK_2(bp);
switch (GET_BE_U_2(bp)) {
case AFNUM_INET:
ND_TCHECK_LEN(bp, sizeof(nd_ipv4));
@@ -515,7 +514,6 @@ pgm_print(netdissect_options *ndo,
ND_PRINT("[Option length not a multiple of 4]");
return;
}
- ND_TCHECK_4(bp);
ND_PRINT(" %u", GET_BE_U_4(bp));
bp += 4;
opt_len -= 4;