Skip to content

Commit 5ceb2c3

Browse files
committed
Remove a now redundant ND_TCHECK_LEN() call
It is redundant because it is followed by a GET_IPADDR_STRING().
1 parent 3b8ff4b commit 5ceb2c3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

print-bgp.c

-2
Original file line numberDiff line numberDiff line change
@@ -2133,8 +2133,6 @@ bgp_attr_print(netdissect_options *ndo,
21332133
tlen -= tnhlen;
21342134
tnhlen = 0;
21352135
} else {
2136-
ND_TCHECK_LEN(tptr,
2137-
sizeof(nd_ipv4) + BGP_VPN_RD_LEN);
21382136
ND_PRINT("RD: %s, %s",
21392137
bgp_vpn_rd_print(ndo, tptr),
21402138
GET_IPADDR_STRING(tptr+BGP_VPN_RD_LEN));

0 commit comments

Comments
 (0)