Browse Source

r15899@catbus: nickm | 2007-10-18 07:49:15 -0400
"if (!router_get_trusted_dirservers())" is a bad test: router_get_trusted_dirservers() always returns a list. Instead, check for whether the list is empty.


svn:r12013

Nick Mathewson 16 years ago
parent
commit
35abfa1f77
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/config.c

+ 1 - 1
src/or/config.c

@@ -973,7 +973,7 @@ options_act(or_options_t *old_options)
       }
     }
   } else {
-    if (!router_get_trusted_dir_servers())
+    if (!smartlist_len(router_get_trusted_dir_servers()))
       add_default_trusted_dirservers();
   }