From ca95ed74ac2d7b2465b9353517db7ed66d0e72e9 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 7 Dec 2004 21:57:37 +0000 Subject: [PATCH] resolve tequila's crash bug: you can't free something and then keep using it. svn:r3117 --- src/or/connection_edge.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 53e7b68c81..bc770aca00 100644 --- a/src/or/connection_edge.c +++ b/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 */