]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Return connection_exit_connect() if payload creation failed.
authorGeorge Kadianakis <desnacked@riseup.net>
Wed, 5 Dec 2012 02:32:11 +0000 (04:32 +0200)
committerGeorge Kadianakis <desnacked@riseup.net>
Wed, 5 Dec 2012 02:32:11 +0000 (04:32 +0200)
Fixes bug #7592; bugfix on 882b389668067a29bb539d0f5bd5cb2f83b93012.

The bug is not present in any released versions of Tor.

src/or/connection_edge.c

index 41c75a2b8cae5c2987e7441d12f21c2a85d932f0..6587a30048886eeacb7afdf1ad07f189830587ce 100644 (file)
@@ -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,