Commit 35abfa1f authored by Nick Mathewson's avatar Nick Mathewson 🎨
Browse files

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
parent 75271742
......@@ -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();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment