summaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-05-12 11:09:40 -0400
committerNick Mathewson <nickm@torproject.org>2016-05-12 11:09:40 -0400
commit58e0e587a6e0ddb04a8fa6a58852d843b1c21a2c (patch)
tree6adbbc4e3319067d0e5664e008d4cd73ad8a6364 /src/or/circuituse.c
parentf936f186b2a22c70a50021e2e7e0adf1ff131834 (diff)
parentce6f2d1c4da5125cdd4a69fcc4cd45f7c3d6ca8d (diff)
downloadtor-58e0e587a6e0ddb04a8fa6a58852d843b1c21a2c.tar.gz
tor-58e0e587a6e0ddb04a8fa6a58852d843b1c21a2c.zip
Merge branch 'maint-0.2.8'
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 311af5dfbe..246f6c50c9 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -1674,7 +1674,11 @@ circuit_launch(uint8_t purpose, int flags)
return circuit_launch_by_extend_info(purpose, NULL, flags);
}
-/* DOCDOC */
+/* Do we have enough descriptors to build paths?
+ * If need_exit is true, return 1 if we can build exit paths.
+ * (We need at least one Exit in the consensus to build exit paths.)
+ * If need_exit is false, return 1 if we can build internal paths.
+ */
static int
have_enough_path_info(int need_exit)
{