bugfix on r10609: don't fail asserts when closing circuits

that were connected to an unkeyed connection.


svn:r10611
This commit is contained in:
Roger Dingledine 2007-06-15 16:21:40 +00:00
parent 2cd293dc8f
commit 07ff5c6785

View File

@ -424,6 +424,8 @@ circuit_n_conn_done(or_connection_t *or_conn, int status)
if (circ->n_addr != or_conn->_base.addr ||
circ->n_port != or_conn->_base.port)
continue;
/* now teach circ the right identity_digest */
memcpy(circ->n_conn_id_digest, or_conn->identity_digest, DIGEST_LEN);
} else {
/* We expected a key. See if it's the right one. */
if (memcmp(or_conn->identity_digest,