Explorar o código

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
Roger Dingledine %!s(int64=18) %!d(string=hai) anos
pai
achega
6ca7c118ec
Modificáronse 2 ficheiros con 8 adicións e 1 borrados
  1. 5 0
      ChangeLog
  2. 3 1
      src/or/networkstatus.c

+ 5 - 0
ChangeLog

@@ -1,4 +1,9 @@
 Changes in version 0.2.0.10-alpha - 2007-1?-??
 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:
   o New requirements:
     - Drop support for OpenSSL version 0.9.6.  Just about nobody was using
     - 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.
       it, it had no AES, and it hasn't seen any security patches since 2004.

+ 3 - 1
src/or/networkstatus.c

@@ -885,7 +885,9 @@ networkstatus_get_router_digest_by_nickname(const char *nickname)
 int
 int
 networkstatus_nickname_is_unnamed(const char *nickname)
 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
 /** How frequently do directory authorities re-download fresh networkstatus