]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
try to stem the 'sea of fail'
authorRoger Dingledine <arma@torproject.org>
Thu, 1 Oct 2009 09:35:24 +0000 (05:35 -0400)
committerRoger Dingledine <arma@torproject.org>
Thu, 1 Oct 2009 09:35:24 +0000 (05:35 -0400)
src/or/circuitbuild.c

index 1bf16e8b4929efe93f81ca951fda16ae0ccea312..e462ac23982f1a4ae1469bf92e8da774221bd30b 100644 (file)
@@ -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);