X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/10ac942adc5988e9dd17f4189cd08fc2dd1e6650..db3c742cd74bddea8d135fbabb0c9f7065a1d779:/print-ospf6.c diff --git a/print-ospf6.c b/print-ospf6.c index 1b862b30..1bdcd681 100644 --- a/print-ospf6.c +++ b/print-ospf6.c @@ -425,9 +425,8 @@ ospf6_print_lsaprefix(netdissect_options *ndo, if (lsa_length < wordlen * 4) goto trunc; lsa_length -= wordlen * 4; - ND_TCHECK_LEN(lsapp->lsa_p_prefix, wordlen * 4); memset(prefix, 0, sizeof(prefix)); - memcpy(prefix, lsapp->lsa_p_prefix, wordlen * 4); + GET_CPY_BYTES(prefix, lsapp->lsa_p_prefix, wordlen * 4); ND_PRINT("\n\t\t%s/%u", ip6addr_string(ndo, prefix), /* local buffer, not packet data; don't use GET_IP6ADDR_STRING() */ GET_U_1(lsapp->lsa_p_len)); if (GET_U_1(lsapp->lsa_p_opt)) {