瀏覽代碼

Merge branch 'bug23690_028'

Nick Mathewson 7 年之前
父節點
當前提交
8ccefa7b7a
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 5 0
      changes/bug23690
  2. 1 0
      src/or/circuitlist.c

+ 5 - 0
changes/bug23690

@@ -0,0 +1,5 @@
+  o Major bugfixes (relay, crash, assertion failure):
+    - Fix a timing-based assertion failure that could occur when the
+      circuit out-of-memory handler freed a connection's output buffer.
+      Fixes bug 23690; bugfix on 0.2.6.1-alpha.
+

+ 1 - 0
src/or/circuitlist.c

@@ -2122,6 +2122,7 @@ single_conn_free_bytes(connection_t *conn)
   if (conn->outbuf) {
     result += buf_allocation(conn->outbuf);
     buf_clear(conn->outbuf);
+    conn->outbuf_flushlen = 0;
   }
   if (conn->type == CONN_TYPE_DIR) {
     dir_connection_t *dir_conn = TO_DIR_CONN(conn);