aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/or/routerlist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index e942e9623..aa6a74572 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -77,7 +77,7 @@ routerinfo_t *router_pick_directory_server(int requireothers) {
routerinfo_t *choice;
if (!routerlist)
-
+ return NULL;
choice = router_pick_directory_server_impl(requireothers, options.FascistFirewall);
if(choice)
@@ -176,6 +176,9 @@ router_pick_trusteddirserver_impl(int requireother, int fascistfirewall)
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;