summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-26 03:42:41 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-26 03:42:41 +0000
commitbd38df847201e7574693be2993035a96decc164c (patch)
tree3dd7237f9f55c3d93864c74141ac2bd9a9aff701
parent0355d29e12cee143f29f7677151dc2fdf5950f7e (diff)
downloadtor-bd38df847201e7574693be2993035a96decc164c.tar.gz
tor-bd38df847201e7574693be2993035a96decc164c.zip
fix a bug that's been lurking since 27 may 03 (!)
when passing back a destroy cell, we would use the wrong circ id. how the heck did this work? svn:r1710
-rw-r--r--src/or/circuit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c
index b65bc3270c..3964ac1b69 100644
--- a/src/or/circuit.c
+++ b/src/or/circuit.c
@@ -1015,7 +1015,7 @@ int _circuit_mark_for_close(circuit_t *circ) {
connection_edge_destroy(circ->n_circ_id, conn);
}
if(circ->p_conn)
- connection_send_destroy(circ->n_circ_id, circ->p_conn);
+ connection_send_destroy(circ->p_circ_id, circ->p_conn);
for(conn=circ->p_streams; conn; conn=conn->next_stream) {
connection_edge_destroy(circ->p_circ_id, conn);
}