aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 2967413ea..daed36aad 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;
}