mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
bandaid: make Giorgos Pallas's dns assert bug not actually crash on him.
one day we should try to figure out what's actually going on here. svn:r3280
This commit is contained in:
parent
6dd91de3bd
commit
ba7c74e742
@ -396,6 +396,11 @@ void dns_cancel_pending_resolve(char *address) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!resolve->pending_connections) {
|
||||||
|
/* XXX this should never trigger, but sometimes it does */
|
||||||
|
log_fn(LOG_WARN,"Bug: Address '%s' is pending but has no pending connections!", address);
|
||||||
|
return;
|
||||||
|
}
|
||||||
tor_assert(resolve->pending_connections);
|
tor_assert(resolve->pending_connections);
|
||||||
|
|
||||||
/* mark all pending connections to fail */
|
/* mark all pending connections to fail */
|
||||||
|
Loading…
Reference in New Issue
Block a user