[tor-commits] [tor/master] Add a comment to have_enough_path_info()

nickm at torproject.org nickm at torproject.org
Thu May 12 15:09:50 UTC 2016


commit 0c41ae18329644828ff247b00a7f4e99e3f38312
Author: teor (Tim Wilson-Brown) <teor2345 at gmail.com>
Date:   Mon May 9 14:26:13 2016 -0400

    Add a comment to have_enough_path_info()
    
    Comment only change
---
 src/or/circuituse.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 31003ea..fa6c666 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)
 {





More information about the tor-commits mailing list