From 053e02a487c7b960dc72717b230a85cd26a28e0b Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 22 Jul 2020 14:21:45 -0400 Subject: [PATCH] addr: Always set addr_out to UNSPEC in find_my_address Related #40058 Signed-off-by: David Goulet --- src/app/config/resolve_addr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/config/resolve_addr.c b/src/app/config/resolve_addr.c index d23e39b62d..a184c14887 100644 --- 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;