[or-cvs] backport: a similar bugfix where we were abandoning rendezv...

arma at seul.org arma at seul.org
Mon Dec 5 06:08:22 UTC 2005


Update of /home/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/tor-010x/tor/src/or

Modified Files:
      Tag: tor-0_1_0-patches
	circuituse.c 
Log Message:
backport: a similar bugfix where we were abandoning rendezvous
circuits that were freshly dirty, not ones that were really dirty.

didn't bite us very hard because it only mattered when the circuit
had been around for more than 30 seconds.


Index: circuituse.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/circuituse.c,v
retrieving revision 1.72.2.2
retrieving revision 1.72.2.3
diff -u -d -r1.72.2.2 -r1.72.2.3
--- circuituse.c	5 Dec 2005 06:03:58 -0000	1.72.2.2
+++ circuituse.c	5 Dec 2005 06:08:20 -0000	1.72.2.3
@@ -236,7 +236,7 @@
         ((victim->purpose == CIRCUIT_PURPOSE_C_REND_READY ||
           victim->purpose == CIRCUIT_PURPOSE_C_REND_READY_INTRO_ACKED ||
           victim->purpose == CIRCUIT_PURPOSE_C_INTRODUCE_ACK_WAIT) &&
-         victim->timestamp_dirty + MIN_SECONDS_BEFORE_EXPIRING_CIRC > now)) {
+         victim->timestamp_dirty + MIN_SECONDS_BEFORE_EXPIRING_CIRC < now)) {
       if (victim->n_conn)
         log_fn(LOG_INFO,"Abandoning circ %s:%d:%d (state %d:%s, purpose %d)",
                victim->n_conn->address, victim->n_port, victim->n_circ_id,



More information about the tor-commits mailing list