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

[or-cvs] Add missing line; add similar check



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv26159/src/or

Modified Files:
	routerlist.c 
Log Message:
Add missing line; add similar check

Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -d -r1.152 -r1.153
--- routerlist.c	14 Oct 2004 01:44:32 -0000	1.152
+++ routerlist.c	14 Oct 2004 02:29:03 -0000	1.153
@@ -77,7 +77,7 @@
   routerinfo_t *choice;
 
   if (!routerlist)
-    
+    return NULL;
 
   choice = router_pick_directory_server_impl(requireothers, options.FascistFirewall);
   if(choice)
@@ -176,6 +176,9 @@
   sl = smartlist_create();
   me = router_get_my_routerinfo();
 
+  if (!trusted_dir_servers)
+    return NULL;
+
   SMARTLIST_FOREACH(trusted_dir_servers, trusted_dir_server_t *, d,
     {
       if (!d->is_running) continue;