diff options
author | Roger Dingledine <arma@torproject.org> | 2013-02-09 22:07:22 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2013-02-09 22:07:22 -0500 |
commit | 74e6a47a808803c985f55b626dff294dbe425043 (patch) | |
tree | 9ba39d530438b96f69a04a698ece46b22939862e /src/or/routerparse.c | |
parent | 002c860caee374688f9478dfd6a6e2ebddad791f (diff) | |
download | tor-74e6a47a808803c985f55b626dff294dbe425043.tar.gz tor-74e6a47a808803c985f55b626dff294dbe425043.zip |
stop setting, or using, router->address
resolves ticket 5528.
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 2a3de12c35..ce8247dbb9 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -1206,8 +1206,7 @@ router_parse_entry_from_string(const char *s, const char *end, log_warn(LD_DIR,"Router nickname is invalid"); goto err; } - router->address = tor_strdup(tok->args[1]); - if (!tor_inet_aton(router->address, &in)) { + if (!tor_inet_aton(tok->args[1], &in)) { log_warn(LD_DIR,"Router address is not an IP address."); goto err; } |