Turns out that DNS resolving streams don't have a linked_conn and they can be
freed with that function in circuit_free_all() so remove the BUG() on it
because it is a legit code path.
Signed-off-by: David Goulet <dgoulet@torproject.org>
return;
tor_assert(!connection_is_on_closeable_list(conn));
tor_assert(!connection_in_array(conn));
- if (BUG(conn->linked_conn)) {
+ if (conn->linked_conn) {
conn->linked_conn->linked_conn = NULL;
if (! conn->linked_conn->marked_for_close &&
conn->linked_conn->reading_from_linked_conn)