浏览代码

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 15 年之前
父节点
当前提交
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) {
       /* 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);