mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
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:
parent
3425f2c11f
commit
d509efb9b7
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user