diff options
author | Neel Chauhan <neel@neelc.org> | 2018-02-06 08:13:55 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-02-16 08:20:33 -0500 |
commit | c2fa743806accfbb119c925fbd8466b0f48b7ef7 (patch) | |
tree | e43d46e032ac455a51464b8d46b2075669282dd8 /src/or/circuitbuild.c | |
parent | 200fc8c640341dde657bd5162b9468cbd07d2938 (diff) | |
download | tor-c2fa743806accfbb119c925fbd8466b0f48b7ef7.tar.gz tor-c2fa743806accfbb119c925fbd8466b0f48b7ef7.zip |
Remove the return value of node_get_prim_orport() and node_get_prim_dirport()
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 6d6fd033b9..b3b543348c 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -2866,8 +2866,10 @@ extend_info_from_node(const node_t *node, int for_direct_connect) valid_addr = fascist_firewall_choose_address_node(node, FIREWALL_OR_CONNECTION, 0, &ap); - else - valid_addr = !node_get_prim_orport(node, &ap); + else { + node_get_prim_orport(node, &ap); + valid_addr = tor_addr_port_is_valid_ap(&ap, 0); + } if (valid_addr) log_debug(LD_CIRC, "using %s for %s", |