]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r15899@catbus: nickm | 2007-10-18 07:49:15 -0400
authorNick Mathewson <nickm@torproject.org>
Thu, 18 Oct 2007 11:50:20 +0000 (11:50 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 18 Oct 2007 11:50:20 +0000 (11:50 +0000)
 "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

src/or/config.c

index 052a62668c13b54db6607dac038583e4efd974ed..7d64ede61cd811180f1d55b6ec33bf659424fd28 100644 (file)
@@ -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();
   }