summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index ac8949ff46..a0538be8a1 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -885,7 +885,9 @@ networkstatus_get_router_digest_by_nickname(const char *nickname)
int
networkstatus_nickname_is_unnamed(const char *nickname)
{
- return strmap_get_lc(named_server_map, nickname) != NULL;
+ if (!unnamed_server_map)
+ return 0;
+ return strmap_get_lc(unnamed_server_map, nickname) != NULL;
}
/** How frequently do directory authorities re-download fresh networkstatus