[or-cvs] Fix another time comparison bug in circuit_stream_is_being_...

arma at seul.org arma at seul.org
Sun Dec 4 22:23:26 UTC 2005


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

Modified Files:
	circuituse.c 
Log Message:
Fix another time comparison bug in circuit_stream_is_being_handled().
Nick, can you confirm this one?
This is also a backport candidate.


Index: circuituse.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuituse.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- circuituse.c	4 Dec 2005 22:19:04 -0000	1.98
+++ circuituse.c	4 Dec 2005 22:23:24 -0000	1.99
@@ -307,7 +307,7 @@
         circ->purpose == CIRCUIT_PURPOSE_C_GENERAL &&
         !circ->build_state->is_internal &&
         (!circ->timestamp_dirty ||
-         circ->timestamp_dirty + get_options()->MaxCircuitDirtiness < now)) {
+         circ->timestamp_dirty + get_options()->MaxCircuitDirtiness > now)) {
       exitrouter = build_state_get_exit_router(circ->build_state);
       if (exitrouter &&
           (!need_uptime || circ->build_state->need_uptime)) {



More information about the tor-commits mailing list