Преглед изворни кода

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 година
родитељ
комит
1c62b9d5fa
1 измењених фајлова са 1 додато и 1 уклоњено
  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);