From fc9dd98d4cfdf6b5012d15e71a318f6aab8f6121 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 30 Sep 2006 20:07:37 +0000 Subject: [PATCH] r8805@totoro: nickm | 2006-09-30 16:07:13 -0400 Oops; nameserver list is circular. svn:r8552 --- src/or/eventdns.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/or/eventdns.c b/src/or/eventdns.c index 8ed486214c..4fddf946b5 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -2351,6 +2351,8 @@ evdns_shutdown(int fail_requests) CLOSE_SOCKET(server->socket); (void) event_del(&server->event); free(server); + if (server_next == server_head) + break; } server_head = NULL; global_good_nameservers = 0;