]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
(a - b) / 2 != a - (b / 2); this is the reason why tunneled directory requests and...
authorKarsten Loesing <karsten.loesing@gmx.net>
Wed, 5 Nov 2008 10:40:29 +0000 (10:40 +0000)
committerKarsten Loesing <karsten.loesing@gmx.net>
Wed, 5 Nov 2008 10:40:29 +0000 (10:40 +0000)
svn:r17189

src/or/circuituse.c

index 14acbf5e6ca019a917fd849630c384288639c90e..f4ea3e8d84f7a10825aef745fb13c3f6592220cc 100644 (file)
@@ -268,8 +268,8 @@ circuit_expire_building(time_t now)
 {
   circuit_t *victim, *circ = global_circuitlist;
   time_t general_cutoff = now - get_options()->CircuitBuildTimeout;
-  time_t begindir_cutoff = general_cutoff/2;
-  time_t introcirc_cutoff = general_cutoff/2;
+  time_t begindir_cutoff = now - get_options()->CircuitBuildTimeout/2;
+  time_t introcirc_cutoff = begindir_cutoff;
   cpath_build_state_t *build_state;
 
   while (circ) {