[tor-commits] [tor/master] Return connection_exit_connect() if payload creation failed.

nickm at torproject.org nickm at torproject.org
Wed Dec 5 02:48:32 UTC 2012


commit c01dfd5d7b5662c9bc70ae9a97ecd268b307495c
Author: George Kadianakis <desnacked at riseup.net>
Date:   Wed Dec 5 04:32:11 2012 +0200

    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 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 41c75a2..6587a30 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,





More information about the tor-commits mailing list