[tor-commits] [tor/master] addr: Always set addr_out to UNSPEC in find_my_address

dgoulet at torproject.org dgoulet at torproject.org
Wed Jul 22 20:09:44 UTC 2020


commit 053e02a487c7b960dc72717b230a85cd26a28e0b
Author: David Goulet <dgoulet at torproject.org>
Date:   Wed Jul 22 14:21:45 2020 -0400

    addr: Always set addr_out to UNSPEC in find_my_address
    
    Related #40058
    
    Signed-off-by: David Goulet <dgoulet at torproject.org>
---
 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;
 





More information about the tor-commits mailing list