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

[or-cvs] if we learn that a down entry guard is up, count our workin...



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	circuitbuild.c 
Log Message:
if we learn that a down entry guard is up, count our working entry
guards correctly when logging.


Index: circuitbuild.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuitbuild.c,v
retrieving revision 1.206
retrieving revision 1.207
diff -u -p -d -r1.206 -r1.207
--- circuitbuild.c	10 Jan 2006 22:42:44 -0000	1.206
+++ circuitbuild.c	11 Jan 2006 03:58:59 -0000	1.207
@@ -2014,12 +2014,12 @@ entry_guard_set_status(const char *diges
             changed = 1;
           }
           if (entry->down_since) {
+            entry->down_since = 0;
             /*XXXX shouldn't be so loud. NM */
             notice(LD_CIRC,
                    "Connection to formerly down entry guard '%s' succeeded. "
                    "%d/%d entry guards usable/new.", entry->nickname,
                    num_live_entry_guards(), smartlist_len(entry_guards));
-            entry->down_since = 0;
             log_entry_guards(LOG_INFO);
             changed = 1;
           }