aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-30 20:07:37 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-30 20:07:37 +0000
commitfc9dd98d4cfdf6b5012d15e71a318f6aab8f6121 (patch)
tree135a37fdacd7da17b94ecbce3245ec82cb09f489
parent075cb54d9ba9cc2eb3d780957672831351480549 (diff)
downloadtor-fc9dd98d4cfdf6b5012d15e71a318f6aab8f6121.tar
tor-fc9dd98d4cfdf6b5012d15e71a318f6aab8f6121.tar.gz
r8805@totoro: nickm | 2006-09-30 16:07:13 -0400
Oops; nameserver list is circular. svn:r8552
-rw-r--r--src/or/eventdns.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c
index 8ed486214..4fddf946b 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;