We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e31d0a commit 2ed0f76Copy full SHA for 2ed0f76
source/Common_Protocols/icmpv6.c
@@ -325,12 +325,12 @@ static buffer_t *icmpv6_echo_request_handler(buffer_t *buf)
325
326
if (addr_is_ipv6_multicast(buf->dst_sa.address)) {
327
const uint8_t *ipv6_ptr;
328
+ memcpy(buf->dst_sa.address, buf->src_sa.address, 16);
329
ipv6_ptr = addr_select_source(cur, buf->dst_sa.address, 0);
330
if (!ipv6_ptr) {
331
tr_debug("No address");
332
return buffer_free(buf);
333
}
- memcpy(buf->dst_sa.address, buf->src_sa.address, 16);
334
memcpy(buf->src_sa.address, ipv6_ptr, 16);
335
} else {
336
memswap(buf->dst_sa.address, buf->src_sa.address, 16);
0 commit comments