Return connection_exit_connect() if payload creation failed.

Fixes bug #7592; bugfix on 882b389668.

The bug is not present in any released versions of Tor.
This commit is contained in:
George Kadianakis 2012-12-05 04:32:11 +02:00
parent 190c1d4981
commit c01dfd5d7b

View 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,