aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-12-05 19:01:34 +0000
committerNick Mathewson <nickm@torproject.org>2005-12-05 19:01:34 +0000
commitf0abb1a74b3946930a4a0df2dfb314bd44e64151 (patch)
tree3ac8a62fda3fe077ef175e9da4d6fa8bc1d4d0d4 /src/or
parent835f06a77c7d3e930b0ea3025ceefaac12f2afc1 (diff)
downloadtor-f0abb1a74b3946930a4a0df2dfb314bd44e64151.tar
tor-f0abb1a74b3946930a4a0df2dfb314bd44e64151.tar.gz
Check magic when removing old connection from map.
svn:r5508
Diffstat (limited to 'src/or')
-rw-r--r--src/or/circuitlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 8fceae19f..6d1d61f00 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -104,6 +104,7 @@ circuit_set_circid_orconn(circuit_t *circ, uint16_t id,
}
if (old_conn) { /* we may need to remove it from the conn-circid map */
+ tor_assert(old_conn->magic == CONNECTION_MAGIC);
search.circ_id = old_id;
search.or_conn = old_conn;
found = HT_REMOVE(orconn_circid_map, &orconn_circid_circuit_map, &search);