From 51e180c4fb05a88ad6687a23cc983955cd9ea431 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Tue, 8 Sep 2020 05:04:58 +0100 Subject: Remove 96 assorted ND_TCHECK calls. Remove a number of instances that do not match common patterns and have the only substantial effect on the code flow that a truncated packet triggers "goto trunc" instead of longjmp(). (In a few cases this change can increase the number of fields printed before giving up.) --- print-pppoe.c | 1 - 1 file changed, 1 deletion(-) (limited to 'print-pppoe.c') diff --git a/print-pppoe.c b/print-pppoe.c index 9452b19e..50ae0996 100644 --- a/print-pppoe.c +++ b/print-pppoe.c @@ -150,7 +150,6 @@ pppoe_print(netdissect_options *ndo, const u_char *bp, u_int length) * tag_type is previous tag or 0xffff for first iteration */ while (tag_type && p < pppoe_payload + pppoe_length) { - ND_TCHECK_4(p); tag_type = GET_BE_U_2(p); tag_len = GET_BE_U_2(p + 2); p += 4; -- cgit v1.2.1