summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-04-16 11:51:02 -0400
committerNick Mathewson <nickm@torproject.org>2018-04-22 19:43:07 -0400
commit47163780c3682d881ad6e8044320a57fce439ea1 (patch)
treedcc67e42a02501a6f07d5e6090b610927eb535ad /src/or/circuitbuild.c
parent0f3d73a2d0ef22d51183768308887d0271ef20f0 (diff)
downloadtor-47163780c3682d881ad6e8044320a57fce439ea1.tar.gz
tor-47163780c3682d881ad6e8044320a57fce439ea1.zip
Rename node_has_descriptor() to node_has_any_descriptor()
Changing the name of this function should help keep us from misusing it when node_has_preferred_descriptor() would be more appropriate.
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 96cc8369da..06aff06200 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -2468,7 +2468,7 @@ count_acceptable_nodes, (smartlist_t *nodes))
if (! node->is_valid)
// log_debug(LD_CIRC,"Nope, the directory says %d is not valid.",i);
continue;
- if (! node_has_descriptor(node))
+ if (! node_has_any_descriptor(node))
continue;
/* The node has a descriptor, so we can just check the ntor key directly */
if (!node_has_curve25519_onion_key(node))