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:
David Goulet 2020-07-22 14:21:45 -04:00
parent 65c7d33d33
commit 053e02a487

View File

@ -629,6 +629,7 @@ find_my_address(const or_options_t *options, int family, int warn_severity,
tor_assert(addr_out);
/* Set them to NULL for safety reasons. */
tor_addr_make_unspec(addr_out);
if (method_out) *method_out = NULL;
if (hostname_out) *hostname_out = NULL;