summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2018-04-27 19:14:59 +0000
committerNick Mathewson <nickm@torproject.org>2018-05-01 08:51:16 -0400
commit5458ff20a5a8d76c6e8abe80167bd84fa157038f (patch)
tree8334d14a6e0560a340c0cf4d85f9fc4e198f7f91 /src/or/circuitbuild.c
parentddb2b965dec20e105eae02b848d6c82359c21132 (diff)
downloadtor-5458ff20a5a8d76c6e8abe80167bd84fa157038f.tar.gz
tor-5458ff20a5a8d76c6e8abe80167bd84fa157038f.zip
Remove the return value from the fascist_firewall_choose_address_* family of functions
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index c33dbbeb2d..24c32b710c 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -2802,16 +2802,13 @@ extend_info_from_node(const node_t *node, int for_direct_connect)
return NULL;
}
- /* Choose a preferred address first, but fall back to an allowed address.
- * choose_address returns 1 on success, but get_prim_orport returns 0. */
+ /* Choose a preferred address first, but fall back to an allowed address. */
if (for_direct_connect)
- valid_addr = fascist_firewall_choose_address_node(node,
- FIREWALL_OR_CONNECTION,
- 0, &ap);
+ fascist_firewall_choose_address_node(node, FIREWALL_OR_CONNECTION, 0, &ap);
else {
node_get_prim_orport(node, &ap);
- valid_addr = tor_addr_port_is_valid_ap(&ap, 0);
}
+ valid_addr = tor_addr_port_is_valid_ap(&ap, 0);
if (valid_addr)
log_debug(LD_CIRC, "using %s for %s",