mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
addr: Always set addr_out to UNSPEC in find_my_address
Related #40058 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
65c7d33d33
commit
053e02a487
@ -629,6 +629,7 @@ find_my_address(const or_options_t *options, int family, int warn_severity,
|
|||||||
tor_assert(addr_out);
|
tor_assert(addr_out);
|
||||||
|
|
||||||
/* Set them to NULL for safety reasons. */
|
/* Set them to NULL for safety reasons. */
|
||||||
|
tor_addr_make_unspec(addr_out);
|
||||||
if (method_out) *method_out = NULL;
|
if (method_out) *method_out = NULL;
|
||||||
if (hostname_out) *hostname_out = NULL;
|
if (hostname_out) *hostname_out = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user