summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2016-11-16 16:13:03 -0500
committerRoger Dingledine <arma@torproject.org>2016-11-16 16:13:03 -0500
commit3bb40b213b26467df2604023ae29d915dc740128 (patch)
tree91e51fc39ee26198b5ca161272daf1732cf0420d /src/or/control.c
parentcaf7422871f058269b6b53e279463a130a372fc1 (diff)
downloadtor-3bb40b213b26467df2604023ae29d915dc740128.tar.gz
tor-3bb40b213b26467df2604023ae29d915dc740128.zip
refactor router_pick_published_address to have another arg
no change in behavior except fewer log entries in the case where we use a cached result.
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index a4f8e3713b..c8c5062e86 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -1704,7 +1704,7 @@ getinfo_helper_misc(control_connection_t *conn, const char *question,
*answer = tor_strdup("VERBOSE_NAMES EXTENDED_EVENTS");
} else if (!strcmp(question, "address")) {
uint32_t addr;
- if (router_pick_published_address(get_options(), &addr) < 0) {
+ if (router_pick_published_address(get_options(), &addr, 0) < 0) {
*errmsg = "Address unknown";
return -1;
}