summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-08-22 01:22:19 -0400
committerNick Mathewson <nickm@torproject.org>2016-08-22 01:22:19 -0400
commit0ba05313d56e6737c73d003c84eeebdfd0d40398 (patch)
tree82c4b4ed99a977c439ad6cc80dc173ad81683c0e /src
parent65cf5130ef60b82bae552363bcca53e5ab9cfd02 (diff)
downloadtor-0ba05313d56e6737c73d003c84eeebdfd0d40398.tar.gz
tor-0ba05313d56e6737c73d003c84eeebdfd0d40398.zip
Do not pass NULL to log(%s) in dir_server_new.
This bug had existed since 0.2.4.7-alpha, but now that we have FallbackDirs by default, it actually matters. Fixes bug 19947; bugfix on 0.2.4.7-alpha or maybe 0.2.8.1-alpha. Rubiate wrote the patch; teor wrote the changes file.
Diffstat (limited to 'src')
-rw-r--r--src/or/routerlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 620c32d641..c3588726f7 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -4337,10 +4337,10 @@ dir_server_new(int is_authority,
if (nickname)
tor_asprintf(&ent->description, "directory server \"%s\" at %s:%d",
- nickname, hostname, (int)dir_port);
+ nickname, hostname_, (int)dir_port);
else
tor_asprintf(&ent->description, "directory server at %s:%d",
- hostname, (int)dir_port);
+ hostname_, (int)dir_port);
ent->fake_status.addr = ent->addr;
tor_addr_copy(&ent->fake_status.ipv6_addr, &ent->ipv6_addr);