diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-18 11:59:39 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-18 11:59:39 +0000 |
commit | 022b0871481729f552a715a49ee733658c17b5ec (patch) | |
tree | e9aa45a87d3869551fa7b39374d331269e6713d3 /src/or/config.c | |
parent | b3c6fd7fc6653e9d9507fd2663b743228e3045fd (diff) | |
download | tor-022b0871481729f552a715a49ee733658c17b5ec.tar.gz tor-022b0871481729f552a715a49ee733658c17b5ec.zip |
r15902@catbus: nickm | 2007-10-18 07:53:26 -0400
Backport: "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:r12015
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 2be061bcf4..773e8adb5c 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -895,7 +895,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(); } |