]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
we need to send nick to the chalkboard to type 'un' 1000 times:
authorRoger Dingledine <arma@torproject.org>
Sat, 27 Oct 2007 21:40:32 +0000 (21:40 +0000)
committerRoger Dingledine <arma@torproject.org>
Sat, 27 Oct 2007 21:40:32 +0000 (21:40 +0000)
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

ChangeLog
src/or/networkstatus.c

index c373210f32980d9ca33f211b7d27ff9086a2446d..062c55d925c6d6091cd4cd3a7e5f3db1772170c4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
 Changes in version 0.2.0.10-alpha - 2007-1?-??
+  o Major bugfixes:
+    - 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.
+
   o New requirements:
     - Drop support for OpenSSL version 0.9.6.  Just about nobody was using
       it, it had no AES, and it hasn't seen any security patches since 2004.
index ac8949ff4672b4f572e2a139f4a88acc68d98b15..a0538be8a110117530214d4c1963a162c370d567 100644 (file)
@@ -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