Explorar o código

r8805@totoro: nickm | 2006-09-30 16:07:13 -0400
Oops; nameserver list is circular.


svn:r8552

Nick Mathewson %!s(int64=19) %!d(string=hai) anos
pai
achega
fc9dd98d4c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/or/eventdns.c

+ 2 - 0
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;