r8805@totoro: nickm | 2006-09-30 16:07:13 -0400

Oops; nameserver list is circular.


svn:r8552
This commit is contained in:
Nick Mathewson 2006-09-30 20:07:37 +00:00
parent 075cb54d9b
commit fc9dd98d4c

View File

@ -2351,6 +2351,8 @@ evdns_shutdown(int fail_requests)
CLOSE_SOCKET(server->socket); CLOSE_SOCKET(server->socket);
(void) event_del(&server->event); (void) event_del(&server->event);
free(server); free(server);
if (server_next == server_head)
break;
} }
server_head = NULL; server_head = NULL;
global_good_nameservers = 0; global_good_nameservers = 0;