瀏覽代碼

resolve tequila's crash bug: you can't free something
and then keep using it.


svn:r3117

Roger Dingledine 21 年之前
父節點
當前提交
ca95ed74ac
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/connection_edge.c

+ 1 - 0
src/or/connection_edge.c

@@ -825,6 +825,7 @@ int connection_exit_begin_conn(cell_t *cell, circuit_t *circ) {
   if (we_are_hibernating()) {
     connection_edge_end(n_stream, END_STREAM_REASON_EXITPOLICY, n_stream->cpath_layer);
     connection_free(n_stream);
+    return 0;
   }
 
   /* send it off to the gethostbyname farm */