[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 053e02a487c7b960dc72717b230a85cd26a28e0b
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxx>
---
 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;
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits