[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r8552: Oops; nameserver list is circular. (in tor/trunk: . src/or)



Author: nickm
Date: 2006-09-30 16:07:37 -0400 (Sat, 30 Sep 2006)
New Revision: 8552

Modified:
   tor/trunk/
   tor/trunk/src/or/eventdns.c
Log:
 r8805@totoro:  nickm | 2006-09-30 16:07:13 -0400
 Oops; nameserver list is circular.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r8805] on 96637b51-b116-0410-a10e-9941ebb49b64

Modified: tor/trunk/src/or/eventdns.c
===================================================================
--- tor/trunk/src/or/eventdns.c	2006-09-30 20:07:23 UTC (rev 8551)
+++ tor/trunk/src/or/eventdns.c	2006-09-30 20:07:37 UTC (rev 8552)
@@ -2351,6 +2351,8 @@
 			CLOSE_SOCKET(server->socket);
 		(void) event_del(&server->event);
 		free(server);
+		if (server_next == server_head)
+			break;
 	}
 	server_head = NULL;
 	global_good_nameservers = 0;