mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Make arguments to circuit_set_circid_orconn match the connection that is closing in circuit_about_to_close_connection. This accounts for our mysterious "arbitrary ram gets decremented!" bug.
svn:r5465
This commit is contained in:
parent
7de0c33857
commit
c90d6c7e5f
@ -516,10 +516,10 @@ circuit_about_to_close_connection(connection_t *conn)
|
||||
SMARTLIST_FOREACH(circs, circuit_t *, circ, {
|
||||
if (circ->n_conn == conn)
|
||||
/* it's closing in front of us */
|
||||
circuit_set_circid_orconn(circ, 0, NULL, P_CONN_CHANGED);
|
||||
circuit_set_circid_orconn(circ, 0, NULL, N_CONN_CHANGED);
|
||||
if (circ->p_conn == conn)
|
||||
/* it's closing behind us */
|
||||
circuit_set_circid_orconn(circ, 0, NULL, N_CONN_CHANGED);
|
||||
circuit_set_circid_orconn(circ, 0, NULL, P_CONN_CHANGED);
|
||||
circuit_mark_for_close(circ);
|
||||
});
|
||||
smartlist_free(circs);
|
||||
|
Loading…
Reference in New Issue
Block a user