diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-11-29 17:13:34 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-11-29 17:13:34 +0000 |
commit | c90d6c7e5f9617d6c0351a9c1b569d65ce57fae6 (patch) | |
tree | 91aca3a1a37ea4255e57ad14548e6aa1ea34bf9a /src/or/circuituse.c | |
parent | 7de0c338579b1d7bf47d61d23c82218fb93bbd8c (diff) | |
download | tor-c90d6c7e5f9617d6c0351a9c1b569d65ce57fae6.tar tor-c90d6c7e5f9617d6c0351a9c1b569d65ce57fae6.tar.gz |
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
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r-- | src/or/circuituse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 2caf79654..165a5fc6f 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -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); |