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-hsrp.c | 1 - 1 file changed, 1 deletion(-) (limited to 'print-hsrp.c') diff --git a/print-hsrp.c b/print-hsrp.c index 7c7ad218..b4e02f55 100644 --- a/print-hsrp.c +++ b/print-hsrp.c @@ -104,7 +104,6 @@ hsrp_print(netdissect_options *ndo, const u_char *bp, u_int len) ND_PRINT("HSRPv%u", version); if (version != 0) return; - ND_TCHECK_1(hp->hsrp_op_code); ND_PRINT("-"); ND_PRINT("%s ", tok2strary(op_code_str, "unknown (%u)", GET_U_1(hp->hsrp_op_code))); -- cgit v1.2.1