summaryrefslogtreecommitdiff
path: root/print-decnet.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-09-30 10:15:03 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-09-30 10:29:43 +0200
commit5595d2cbfdf57af24fbab95221be99b1da1379b6 (patch)
tree26ac83fcbdbe04c5ce3f2522d81d78d67f05f334 /print-decnet.c
parent6288c273b66fa124b58af66026151fff1d5931c2 (diff)
downloadtcpdump-5595d2cbfdf57af24fbab95221be99b1da1379b6.tar.gz
Remove 3 now redundant ND_TCHECK_LEN(e, sizeof(short)) calls
They are redundant because they are identical to ND_TCHECK_2(e), followed by a GET_BE_U_2(e) or a GET_LE_U_2(e), same e, which do the bounds check.
Diffstat (limited to 'print-decnet.c')
-rw-r--r--print-decnet.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/print-decnet.c b/print-decnet.c
index 301fdd9d..0ad03318 100644
--- a/print-decnet.c
+++ b/print-decnet.c
@@ -494,7 +494,6 @@ decnet_print(netdissect_options *ndo,
return;
}
- ND_TCHECK_LEN(ap, sizeof(short));
pktlen = GET_LE_U_2(ap);
if (pktlen < sizeof(struct shorthdr)) {
nd_print_trunc(ndo);