r13019@catbus: nickm | 2007-05-27 12:32:55 -0400

Merge an evdns fix from libevent r357: "evdns_shutdown fix from adam langley.


svn:r10387
This commit is contained in:
Nick Mathewson 2007-05-29 14:41:16 +00:00
parent 3425f2c11f
commit d509efb9b7

View File

@ -3016,6 +3016,8 @@ evdns_shutdown(int fail_requests)
if (server->socket >= 0) if (server->socket >= 0)
CLOSE_SOCKET(server->socket); CLOSE_SOCKET(server->socket);
(void) event_del(&server->event); (void) event_del(&server->event);
if (server->state == 0)
(void) event_del(&server->timeout_event);
CLEAR(server); CLEAR(server);
free(server); free(server);
if (server_next == server_head) if (server_next == server_head)