mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-21 13:34:59 +02:00
bugfix on r10609: don't fail asserts when closing circuits
that were connected to an unkeyed connection. svn:r10611
This commit is contained in:
parent
2cd293dc8f
commit
07ff5c6785
@ -424,6 +424,8 @@ circuit_n_conn_done(or_connection_t *or_conn, int status)
|
|||||||
if (circ->n_addr != or_conn->_base.addr ||
|
if (circ->n_addr != or_conn->_base.addr ||
|
||||||
circ->n_port != or_conn->_base.port)
|
circ->n_port != or_conn->_base.port)
|
||||||
continue;
|
continue;
|
||||||
|
/* now teach circ the right identity_digest */
|
||||||
|
memcpy(circ->n_conn_id_digest, or_conn->identity_digest, DIGEST_LEN);
|
||||||
} else {
|
} else {
|
||||||
/* We expected a key. See if it's the right one. */
|
/* We expected a key. See if it's the right one. */
|
||||||
if (memcmp(or_conn->identity_digest,
|
if (memcmp(or_conn->identity_digest,
|
||||||
|
Loading…
Reference in New Issue
Block a user