mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas
svn:r3293
This commit is contained in:
parent
ba8690373a
commit
814dd946f0
@ -568,7 +568,10 @@ int connection_dns_finished_flushing(connection_t *conn) {
|
||||
int connection_dns_reached_eof(connection_t *conn) {
|
||||
log_fn(LOG_WARN,"Read eof. Worker died unexpectedly.");
|
||||
if (conn->state == DNSWORKER_STATE_BUSY) {
|
||||
dns_cancel_pending_resolve(conn->address);
|
||||
/* don't cancel the resolve here -- it would be cancelled in
|
||||
* connection_about_to_close_connection(), since conn is still
|
||||
* in state BUSY
|
||||
*/
|
||||
num_dnsworkers_busy--;
|
||||
}
|
||||
num_dnsworkers--;
|
||||
|
Loading…
Reference in New Issue
Block a user