summaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-05-09 14:26:13 -0400
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-05-09 14:26:13 -0400
commit0c41ae18329644828ff247b00a7f4e99e3f38312 (patch)
treefef412dc739023724afb8665e5187cf6fd9c96d5 /src/or/circuituse.c
parent01e7f42a09108e71cede46d4a038c4b1253a3d42 (diff)
downloadtor-0c41ae18329644828ff247b00a7f4e99e3f38312.tar.gz
tor-0c41ae18329644828ff247b00a7f4e99e3f38312.zip
Add a comment to have_enough_path_info()
Comment only change
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 31003ea095..fa6c666ea1 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 0 if we can build internal paths.
+ */
static int
have_enough_path_info(int need_exit)
{