aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2009-10-01 05:35:24 -0400
committerRoger Dingledine <arma@torproject.org>2009-10-01 05:35:24 -0400
commitb4e0d09202b75b7e6a555a2db3d7a77120eec7b3 (patch)
treea7916acf88415e029ad4ee49fef11e7686e2724b /src/or/circuitbuild.c
parent1efb643224e1bad000e90077f3e53ff896fe2634 (diff)
downloadtor-b4e0d09202b75b7e6a555a2db3d7a77120eec7b3.tar
tor-b4e0d09202b75b7e6a555a2db3d7a77120eec7b3.tar.gz
try to stem the 'sea of fail'
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 1bf16e8b4..e462ac239 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);