diff options
author | Roger Dingledine <arma@torproject.org> | 2007-10-27 21:40:32 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-10-27 21:40:32 +0000 |
commit | 6ca7c118ece7f6b14dc5a3ea00ee208128fc5ef9 (patch) | |
tree | 11b90682dbf8eaf27e0b5568a8071600bcc1fb45 /src | |
parent | ca30c194605c9083dd2d405d69790334bd23a780 (diff) | |
download | tor-6ca7c118ece7f6b14dc5a3ea00ee208128fc5ef9.tar.gz tor-6ca7c118ece7f6b14dc5a3ea00ee208128fc5ef9.zip |
we need to send nick to the chalkboard to type 'un' 1000 times:
Stop servers from crashing if they set a Family option (or
maybe in other situations too). Bugfix on 0.2.0.9-alpha; reported
by Fabian Keil.
svn:r12235
Diffstat (limited to 'src')
-rw-r--r-- | src/or/networkstatus.c | 4 |
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 |