mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Move connection_or_remove_from_identity_map() to connection_unlink, but dont remove the other; just make it warn.
svn:r5470
This commit is contained in:
parent
3bd613b44d
commit
a6eb8cd2a0
@ -238,6 +238,7 @@ _connection_free(connection_t *conn)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (conn->type == CONN_TYPE_OR && !tor_digest_is_zero(conn->identity_digest)) {
|
if (conn->type == CONN_TYPE_OR && !tor_digest_is_zero(conn->identity_digest)) {
|
||||||
|
warn(LD_BUG, "called on OR conn with non-zeroed idenity_digest");
|
||||||
connection_or_remove_from_identity_map(conn);
|
connection_or_remove_from_identity_map(conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -198,6 +198,9 @@ connection_unlink(connection_t *conn, int remove)
|
|||||||
if (conn->type == CONN_TYPE_EXIT) {
|
if (conn->type == CONN_TYPE_EXIT) {
|
||||||
assert_connection_edge_not_dns_pending(conn);
|
assert_connection_edge_not_dns_pending(conn);
|
||||||
}
|
}
|
||||||
|
if (conn->type == CONN_TYPE_OR && !tor_digest_is_zero(conn->identity_digest)) {
|
||||||
|
connection_or_remove_from_identity_map(conn);
|
||||||
|
}
|
||||||
connection_free(conn);
|
connection_free(conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user