浏览代码

bugfix: while closing a circuit, we were freeing the conns that were
pending resolve, but not removing them from the pending resolve list


svn:r1933

Roger Dingledine 22 年之前
父节点
当前提交
fbbb4d01c3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/circuitlist.c

+ 1 - 0
src/or/circuitlist.c

@@ -372,6 +372,7 @@ int _circuit_mark_for_close(circuit_t *circ) {
   while(circ->resolving_streams) {
     conn = circ->resolving_streams;
     circ->resolving_streams = conn->next_stream;
+    connection_dns_remove(conn); /* remove it from resolve lists */
     log_fn(LOG_INFO,"Freeing resolving-conn.");
     connection_free(conn);
   }