From: Niels Provos Date: Sun, 27 May 2007 06:27:11 +0000 (+0000) Subject: evdns_shutdown fix from Adam Langley X-Git-Tag: release-2.0.1-alpha~624 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0111a29e9e53899e0ea2e529b43f2f26353b853;p=libevent evdns_shutdown fix from Adam Langley svn:r357 --- diff --git a/evdns.c b/evdns.c index b1e0644e..d76be335 100644 --- a/evdns.c +++ b/evdns.c @@ -2954,6 +2954,8 @@ evdns_shutdown(int fail_requests) if (server->socket >= 0) CLOSE_SOCKET(server->socket); (void) event_del(&server->event); + if (server->state == 0) + (void) event_del(&server->timeout_event); free(server); if (server_next == server_head) break;