From d0111a29e9e53899e0ea2e529b43f2f26353b853 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Sun, 27 May 2007 06:27:11 +0000 Subject: [PATCH] evdns_shutdown fix from Adam Langley svn:r357 --- evdns.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.40.0