diff options
author | David Goulet <dgoulet@torproject.org> | 2020-07-22 14:21:45 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-07-22 16:09:07 -0400 |
commit | 053e02a487c7b960dc72717b230a85cd26a28e0b (patch) | |
tree | bb1600c34de11b4ddfb63f5a7d08b1267f33aee6 /src/app/config/resolve_addr.c | |
parent | 65c7d33d33aaee8f3f9e4ac2c8ab08c9cdf54927 (diff) | |
download | tor-053e02a487c7b960dc72717b230a85cd26a28e0b.tar.gz tor-053e02a487c7b960dc72717b230a85cd26a28e0b.zip |
addr: Always set addr_out to UNSPEC in find_my_address
Related #40058
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/app/config/resolve_addr.c')
-rw-r--r-- | src/app/config/resolve_addr.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |