diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2020-09-08 05:04:58 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2020-09-08 05:04:58 +0100 |
commit | 51e180c4fb05a88ad6687a23cc983955cd9ea431 (patch) | |
tree | 3bfe3b338b58f8ef556cd039e3443153635e7fce /print-pppoe.c | |
parent | 24df77f09e26a72f662a82b92645707e0572d1cc (diff) | |
download | tcpdump-51e180c4fb05a88ad6687a23cc983955cd9ea431.tar.gz |
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.)
Diffstat (limited to 'print-pppoe.c')
-rw-r--r-- | print-pppoe.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |