aboutsummaryrefslogtreecommitdiff
path: root/print-rx.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-09-30 10:48:04 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-09-30 13:20:53 +0200
commit3435ef98e5c1552d9f1f184188260092d1ca7774 (patch)
tree3ccfc99a873ec7a41fe013cac4d7136745e1efac /print-rx.c
parentac602ba5565eb851b402a29f76bf9fd3d8753671 (diff)
downloadtcpdump-3435ef98e5c1552d9f1f184188260092d1ca7774.tar.gz
RX: Remove 1 now redundant ND_TCHECK_LEN(e, sizeof(uint32_t)) call
it is redundant because it is identical to ND_TCHECK_4(e), followed by a GET_BE_U_4(e), same e, which do the bounds check.
Diffstat (limited to 'print-rx.c')
-rw-r--r--print-rx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/print-rx.c b/print-rx.c
index 7dfa3ddb..3b7a623d 100644
--- a/print-rx.c
+++ b/print-rx.c
@@ -766,7 +766,6 @@ rx_cache_find(netdissect_options *ndo, const struct rx_header *rxh,
}
#define STROUT(MAX) { uint32_t _i; \
- ND_TCHECK_LEN(bp, sizeof(uint32_t)); \
_i = GET_BE_U_4(bp); \
if (_i > (MAX)) \
goto trunc; \