]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
resolve tequila's crash bug: you can't free something
authorRoger Dingledine <arma@torproject.org>
Tue, 7 Dec 2004 21:57:37 +0000 (21:57 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 7 Dec 2004 21:57:37 +0000 (21:57 +0000)
and then keep using it.

svn:r3117

src/or/connection_edge.c

index 53e7b68c81c537847f149f8c5fc95002389514eb..bc770aca00a47efb1a372cd3fe3e36c1f4df245b 100644 (file)
@@ -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 */