Browse Source

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
Roger Dingledine 16 years ago
parent
commit
1c62b9d5fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/connection.c

+ 1 - 1
src/or/connection.c

@@ -2352,7 +2352,7 @@ loop_again:
 
 
     if (n_read) {
     if (n_read) {
       /* Probably a no-op, but hey. */
       /* 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)
       if (connection_flushed_some(linked) < 0)
         connection_mark_for_close(linked);
         connection_mark_for_close(linked);