summaryrefslogtreecommitdiff
path: root/print-ldp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-09-05 23:25:16 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-09-07 23:03:09 +0200
commit24df77f09e26a72f662a82b92645707e0572d1cc (patch)
tree0262354acc8ba89bbd6e01d6197e8c9c076e9d24 /print-ldp.c
parent7ae15799542662cb1e860a6befc250fa199fd880 (diff)
downloadtcpdump-24df77f09e26a72f662a82b92645707e0572d1cc.tar.gz
Remove some now redundant ND_TCHECK_LEN(e, sizeof(nd_ipv6)) calls
They are redundant because they are followed by a GET_IP6ADDR_STRING(e) call, same e, which do the bounds check. Remove unused 'trunc' label(s) and associated code(s).
Diffstat (limited to 'print-ldp.c')
-rw-r--r--print-ldp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/print-ldp.c b/print-ldp.c
index b5724450..282bed62 100644
--- a/print-ldp.c
+++ b/print-ldp.c
@@ -317,7 +317,6 @@ ldp_tlv_print(netdissect_options *ndo,
break;
case AFNUM_INET6:
while(tlv_tlen >= sizeof(nd_ipv6)) {
- ND_TCHECK_LEN(tptr, sizeof(nd_ipv6));
ND_PRINT(" %s", GET_IP6ADDR_STRING(tptr));
tlv_tlen-=sizeof(nd_ipv6);
tptr+=sizeof(nd_ipv6);