diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-09-29 13:46:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-29 13:47:58 -0400 |
commit | b448ec195dd8687d2d5f363e12fec046eb2d1677 (patch) | |
tree | b286291ff27b917acf8a12faf8160efca56dacd2 /src/or/connection.c | |
parent | e440993f95fad6d5a049be83517c8586fff7ab21 (diff) | |
download | tor-b448ec195dd8687d2d5f363e12fec046eb2d1677.tar.gz tor-b448ec195dd8687d2d5f363e12fec046eb2d1677.zip |
Clear the cached address from resolve_my_address() when our IP changes
Closes 11582; patch from "ra".
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 4a3bd2cf03..5c1b6d9bba 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -4386,6 +4386,8 @@ client_check_address_changed(tor_socket_t sock) SMARTLIST_FOREACH(outgoing_addrs, tor_addr_t*, a_ptr, tor_free(a_ptr)); smartlist_clear(outgoing_addrs); smartlist_add(outgoing_addrs, tor_memdup(&out_addr, sizeof(tor_addr_t))); + /* We'll need to resolve ourselves again. */ + reset_last_resolved_addr(); /* Okay, now change our keys. */ ip_address_changed(1); } |