[or-cvs] [tor/master] try to stem the 'sea of fail'

arma at seul.org arma at seul.org
Thu Oct 1 09:36:14 UTC 2009


Author: Roger Dingledine <arma at torproject.org>
Date: Thu, 1 Oct 2009 05:35:24 -0400
Subject: try to stem the 'sea of fail'
Commit: b4e0d09202b75b7e6a555a2db3d7a77120eec7b3

---
 src/or/circuitbuild.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 1bf16e8..e462ac2 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1510,8 +1510,8 @@ circuit_send_next_onion_skin(origin_circuit_t *circ)
         long timediff;
         tor_gettimeofday(&end);
         timediff = tv_mdiff(&circ->_base.highres_created, &end);
-        if (timediff > BUILD_TIME_MAX)
-          timediff = BUILD_TIME_MAX;
+        if (timediff > INT32_MAX)
+          timediff = INT32_MAX;
         circuit_build_times_add_time(&circ_times, (build_time_t)timediff);
         circuit_build_times_network_circ_success(&circ_times);
         circuit_build_times_set_timeout(&circ_times);
-- 
1.5.6.5



More information about the tor-commits mailing list