summaryrefslogtreecommitdiff
path: root/print-juniper.c
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2020-09-08 05:04:58 +0100
committerDenis Ovsienko <denis@ovsienko.info>2020-09-08 05:04:58 +0100
commit51e180c4fb05a88ad6687a23cc983955cd9ea431 (patch)
tree3bfe3b338b58f8ef556cd039e3443153635e7fce /print-juniper.c
parent24df77f09e26a72f662a82b92645707e0572d1cc (diff)
downloadtcpdump-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-juniper.c')
-rw-r--r--print-juniper.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/print-juniper.c b/print-juniper.c
index 0a26c8bc..1560cee5 100644
--- a/print-juniper.c
+++ b/print-juniper.c
@@ -1283,7 +1283,6 @@ juniper_parse_header(netdissect_options *ndo,
l2info->length = h->len;
l2info->caplen = h->caplen;
- ND_TCHECK_4(p);
l2info->flags = GET_U_1(p + 3);
l2info->direction = GET_U_1(p + 3) & JUNIPER_BPF_PKT_IN;