From: Roger Dingledine Date: Thu, 1 Oct 2009 09:35:24 +0000 (-0400) Subject: try to stem the 'sea of fail' X-Git-Tag: tor-0.2.2.4-alpha~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4e0d09202b75b7e6a555a2db3d7a77120eec7b3;p=thirdparty%2Ftor.git try to stem the 'sea of fail' --- diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 1bf16e8b49..e462ac2398 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);