Commit 97c8ab74 authored by Nick Mathewson's avatar Nick Mathewson 🐘
Browse files

Check magic when removing old connection from map.


svn:r5508
parent 042c6e8a
Loading
Loading
Loading
Loading
+1 −0
Changes for trunk/src/or/circuitlist.c: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -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);