X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/42c0601fcf03834b848e2455c8a041cb60b7af9a..d2777156522f139a858bd6b5b51e364826bc95a7:/print-isoclns.c diff --git a/print-isoclns.c b/print-isoclns.c index 3b4a1502..ddd55953 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -2307,9 +2307,8 @@ isis_print_extd_ip_reach(netdissect_options *ndo, byte_length = (bit_length + 7) / 8; /* prefix has variable length encoding */ - ND_TCHECK_LEN(tptr, byte_length); memset(prefix, 0, sizeof(prefix)); /* clear the copy buffer */ - memcpy(prefix,tptr,byte_length); /* copy as much as is stored in the TLV */ + GET_CPY_BYTES(prefix,tptr,byte_length); /* copy as much as is stored in the TLV */ tptr+=byte_length; processed+=byte_length; @@ -2360,8 +2359,6 @@ isis_print_extd_ip_reach(netdissect_options *ndo, } } return (processed); -trunc: - return 0; } static void