diff options
author | Roger Dingledine <arma@torproject.org> | 2013-02-09 20:29:02 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2013-02-09 20:49:55 -0500 |
commit | ccaefd65a4b8a991e81cb4720343000dbc931eb3 (patch) | |
tree | f7691077309302db5e2e409b3f719a7c070d2f8d /src/or/entrynodes.c | |
parent | 99185397de44a093456890404b3bb6fbebc3e4ef (diff) | |
download | tor-ccaefd65a4b8a991e81cb4720343000dbc931eb3.tar tor-ccaefd65a4b8a991e81cb4720343000dbc931eb3.tar.gz |
stop passing "address" around the directory_initiate_command* funcs
since it was always just the string version of "addr" anyway
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r-- | src/or/entrynodes.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c index 4ca56cbac..494739651 100644 --- a/src/or/entrynodes.c +++ b/src/or/entrynodes.c @@ -1739,7 +1739,6 @@ find_transport_by_bridge_addrport(const tor_addr_t *addr, uint16_t port, static void launch_direct_bridge_descriptor_fetch(bridge_info_t *bridge) { - char *address; const or_options_t *options = get_options(); if (connection_get_by_type_addr_port_purpose( @@ -1754,15 +1753,12 @@ launch_direct_bridge_descriptor_fetch(bridge_info_t *bridge) return; } - address = tor_dup_addr(&bridge->addr); - - directory_initiate_command(address, &bridge->addr, + directory_initiate_command(&bridge->addr, bridge->port, 0/*no dirport*/, bridge->identity, DIR_PURPOSE_FETCH_SERVERDESC, ROUTER_PURPOSE_BRIDGE, DIRIND_ONEHOP, "authority.z", NULL, 0, 0); - tor_free(address); } /** Fetching the bridge descriptor from the bridge authority returned a |