aboutsummaryrefslogtreecommitdiff
path: root/src/core/mainloop
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-06-23 10:06:19 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-06-24 13:51:37 -0400
commit7795dd7ef6fa01202b91d20a0ac82eda1456cef8 (patch)
tree2290d7b7cc56ad625f89ccfb2830426adf6662af /src/core/mainloop
parentb8042c9d9a44eaf78c5580a1b0a3d15a90f125ce (diff)
downloadtor-7795dd7ef6fa01202b91d20a0ac82eda1456cef8.tar.gz
tor-7795dd7ef6fa01202b91d20a0ac82eda1456cef8.zip
addr: Refactor last resolved address cache accessors
Series of things done in this commit: 1. Rename the functions to better reflect the namespace of the file. 2. Make both reset and get function to operate on the last_resolved_addrs cache that is per family. 3. Make the get function to take a tor_addr_t. 4. Change all callsite to use the new convention. Part of #33233 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/mainloop')
-rw-r--r--src/core/mainloop/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/mainloop/connection.c b/src/core/mainloop/connection.c
index 9fff71ee0a..3ebe18cd33 100644
--- a/src/core/mainloop/connection.c
+++ b/src/core/mainloop/connection.c
@@ -4870,7 +4870,7 @@ client_check_address_changed(tor_socket_t sock)
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_v4();
+ resolved_addr_reset_last(AF_INET);
/* Okay, now change our keys. */
ip_address_changed(1);
}