commit 053e02a487c7b960dc72717b230a85cd26a28e0b
parent 65c7d33d33aaee8f3f9e4ac2c8ab08c9cdf54927
Author: David Goulet <dgoulet@torproject.org>
Date: Wed, 22 Jul 2020 14:21:45 -0400
addr: Always set addr_out to UNSPEC in find_my_address
Related #40058
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/app/config/resolve_addr.c b/src/app/config/resolve_addr.c
@@ -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;