[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r15087: fix a bug where we were never reporting the "Finishing hands (tor/trunk/src/or)



Author: arma
Date: 2008-06-09 03:01:52 -0400 (Mon, 09 Jun 2008)
New Revision: 15087

Modified:
   tor/trunk/src/or/control.c
Log:
fix a bug where we were never reporting the
"Finishing handshake with entry guard" bootstrap phase


Modified: tor/trunk/src/or/control.c
===================================================================
--- tor/trunk/src/or/control.c	2008-06-09 06:50:47 UTC (rev 15086)
+++ tor/trunk/src/or/control.c	2008-06-09 07:01:52 UTC (rev 15087)
@@ -3906,10 +3906,10 @@
   if (last_percent == 100)
     return 0; /* already bootstrapped; nothing to be done here. */
 
-  /* special case for handshaking status, since our tls handshaking code
+  /* special case for handshaking status, since our TLS handshaking code
    * can't distinguish what the connection is going to be for. */
   if (status == BOOTSTRAP_STATUS_HANDSHAKE) {
-    if (last_percent < BOOTSTRAP_STATUS_HANDSHAKE_OR) {
+    if (last_percent < BOOTSTRAP_STATUS_CONN_OR) {
       status =  BOOTSTRAP_STATUS_HANDSHAKE_DIR;
     } else {
       status = BOOTSTRAP_STATUS_HANDSHAKE_OR;