mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
fix another rogue connection_free that was causing us troubles
there are no doubt more lurking. svn:r3478
This commit is contained in:
parent
a0312f3590
commit
a7138f2535
@ -378,9 +378,8 @@ int _circuit_mark_for_close(circuit_t *circ) {
|
||||
while (circ->resolving_streams) {
|
||||
conn = circ->resolving_streams;
|
||||
circ->resolving_streams = conn->next_stream;
|
||||
connection_dns_remove(conn); /* remove it from resolve lists */
|
||||
log_fn(LOG_INFO,"Freeing resolving-conn.");
|
||||
connection_free(conn);
|
||||
if (!conn->marked_for_close)
|
||||
connection_mark_for_close(conn);
|
||||
}
|
||||
if (circ->p_conn)
|
||||
connection_send_destroy(circ->p_circ_id, circ->p_conn);
|
||||
|
Loading…
Reference in New Issue
Block a user