From c01dfd5d7b5662c9bc70ae9a97ecd268b307495c Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Wed, 5 Dec 2012 04:32:11 +0200 Subject: [PATCH] Return connection_exit_connect() if payload creation failed. Fixes bug #7592; bugfix on 882b389668067a29bb539d0f5bd5cb2f83b93012. The bug is not present in any released versions of Tor. --- 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 41c75a2b8c..6587a30048 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -2614,6 +2614,7 @@ connection_exit_connect(edge_connection_t *edge_conn) connection_edge_end(edge_conn, END_STREAM_REASON_INTERNAL); circuit_detach_stream(circuit_get_by_edge_conn(edge_conn), edge_conn); connection_free(conn); + return; } connection_edge_send_command(edge_conn,