[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [tor/master] fix a bug where we were decrementing the wrong bucket



Author: Roger Dingledine <arma@xxxxxxxxxxxxxx>
Date: Sat, 10 Oct 2009 14:52:41 -0400
Subject: fix a bug where we were decrementing the wrong bucket
Commit: 1c62b9d5fa21a802f26579379bd7b5d0fc17af9c

i think this doesn't actually affect anything, since linked
conns usually don't impact buckets
---
 src/or/connection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/or/connection.c b/src/or/connection.c
index 18464d2..ca71373 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);
-- 
1.5.6.5