From: Roger Dingledine Date: Sat, 10 Oct 2009 18:52:41 +0000 (-0400) Subject: fix a bug where we were decrementing the wrong bucket X-Git-Tag: tor-0.2.2.4-alpha~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c62b9d5fa21a802f26579379bd7b5d0fc17af9c;p=thirdparty%2Ftor.git fix a bug where we were decrementing the wrong bucket i think this doesn't actually affect anything, since linked conns usually don't impact buckets --- diff --git a/src/or/connection.c b/src/or/connection.c index 18464d2090..ca71373f00 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -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);