Commit a6eb8cd2 authored by Nick Mathewson's avatar Nick Mathewson 🌉
Browse files

Move connection_or_remove_from_identity_map() to connection_unlink, but dont...

Move connection_or_remove_from_identity_map() to connection_unlink, but dont remove the other; just make it warn.


svn:r5470
parent 3bd613b4
......@@ -238,6 +238,7 @@ _connection_free(connection_t *conn)
}
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);
}
......
......@@ -198,6 +198,9 @@ connection_unlink(connection_t *conn, int remove)
if (conn->type == CONN_TYPE_EXIT) {
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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment