]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix a bug where we were decrementing the wrong bucket
authorRoger Dingledine <arma@torproject.org>
Sat, 10 Oct 2009 18:52:41 +0000 (14:52 -0400)
committerRoger Dingledine <arma@torproject.org>
Sat, 10 Oct 2009 18:52:41 +0000 (14:52 -0400)
i think this doesn't actually affect anything, since linked
conns usually don't impact buckets

src/or/connection.c

index 18464d209042a1f900c48d5373500ed0424dc5c6..ca71373f00a05fcd28fd28e80915665ef477aa84 100644 (file)
@@ -2352,7 +2352,7 @@ loop_again:
 
     if (n_read) {
       /* Probably a no-op, but hey. */
-      connection_buckets_decrement(linked, approx_time(), 0, n_read);
+      connection_buckets_decrement(linked, approx_time(), n_read, 0);
 
       if (connection_flushed_some(linked) < 0)
         connection_mark_for_close(linked);