mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Correctly duplicate addresses in get_interface_address6_list
This commit is contained in:
parent
2627299ef0
commit
9f98e6535a
@ -1790,7 +1790,7 @@ MOCK_IMPL(smartlist_t *,get_interface_address6_list,(int severity,
|
||||
if (get_interface_address6_via_udp_socket_hack(severity,AF_INET,
|
||||
&addr) == 0) {
|
||||
if (include_internal || !tor_addr_is_internal(&addr, 0)) {
|
||||
smartlist_add(addrs, tor_dup_addr(&addr));
|
||||
smartlist_add(addrs, tor_memdup(&addr, sizeof(addr)));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1799,7 +1799,7 @@ MOCK_IMPL(smartlist_t *,get_interface_address6_list,(int severity,
|
||||
if (get_interface_address6_via_udp_socket_hack(severity,AF_INET6,
|
||||
&addr) == 0) {
|
||||
if (include_internal || !tor_addr_is_internal(&addr, 0)) {
|
||||
smartlist_add(addrs, tor_dup_addr(&addr));
|
||||
smartlist_add(addrs, tor_memdup(&addr, sizeof(addr)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user