diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-18 11:50:20 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-18 11:50:20 +0000 |
commit | 35abfa1f77faa599377948b37580ad372e7a587b (patch) | |
tree | 0427a769c8d4a07d4c66e0df711501bd705194dc /src/or/config.c | |
parent | 75271742dd7b52d276429208c9868f9389958940 (diff) | |
download | tor-35abfa1f77faa599377948b37580ad372e7a587b.tar tor-35abfa1f77faa599377948b37580ad372e7a587b.tar.gz |
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
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index 052a62668..7d64ede61 100644 --- a/src/or/config.c +++ b/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(); } |