diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-09-05 21:40:32 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-09-07 18:36:18 +0200 |
commit | 7ae15799542662cb1e860a6befc250fa199fd880 (patch) | |
tree | ff530075458a5863cc5f122c336cd95bf46c3879 /print-mobility.c | |
parent | 1ba846e847afa066684e88602bfc2c100e0864eb (diff) | |
download | tcpdump-7ae15799542662cb1e860a6befc250fa199fd880.tar.gz |
Remove some now redundant ND_TCHECK_16() calls
ND_TCHECK_16(e).
They are redundant because they are followed by a GET_IP6ADDR_STRING(e)
call, same e, which do the bounds check.
Diffstat (limited to 'print-mobility.c')
-rw-r--r-- | print-mobility.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/print-mobility.c b/print-mobility.c index a79c7c2d..600f6532 100644 --- a/print-mobility.c +++ b/print-mobility.c @@ -155,7 +155,6 @@ mobility_opt_print(netdissect_options *ndo, ND_PRINT("(altcoa: trunc)"); goto trunc; } - ND_TCHECK_16(bp + i + 2); ND_PRINT("(alt-CoA: %s)", GET_IP6ADDR_STRING(bp + i + 2)); break; case IP6MOPT_NONCEID: @@ -308,7 +307,6 @@ mobility_print(netdissect_options *ndo, ND_PRINT(" status=%u", GET_U_1(mh->ip6m_data8[0])); /* Reserved */ hlen = IP6M_MINLEN; - ND_TCHECK_16(bp + hlen); ND_PRINT(" homeaddr %s", GET_IP6ADDR_STRING(bp + hlen)); hlen += 16; break; |