aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/or/routerlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 2967413ea3..daed36aad8 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -126,6 +126,8 @@ routerinfo_t *router_pick_directory_server(void) {
dirserver = router;
}
}
+ if(!dirserver)
+ log_fn(LOG_WARN,"No dirservers in directory! Returning NULL.");
return dirserver;
}