]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a comment to have_enough_path_info()
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Mon, 9 May 2016 18:26:13 +0000 (14:26 -0400)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Mon, 9 May 2016 18:26:13 +0000 (14:26 -0400)
Comment only change

src/or/circuituse.c

index 31003ea095884039adc73142390743b3fd34bf3b..fa6c666ea131a687a516d7ae1f04a739897637d2 100644 (file)
@@ -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)
 {