diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-09-29 00:38:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-29 00:38:44 -0400 |
commit | 703eb087f597fa3456627e47862038a4ce73089e (patch) | |
tree | fd76a2e43a360cd3103252a9459c178d5ba1bc84 /src/or/routerlist.c | |
parent | f3e8bc391a681ee5e0db1c0cd3796e901ea49846 (diff) | |
parent | a58610a87e27e446b347f49e847da1cd460ffa81 (diff) | |
download | tor-703eb087f597fa3456627e47862038a4ce73089e.tar.gz tor-703eb087f597fa3456627e47862038a4ce73089e.zip |
Merge remote branch 'origin/maint-0.2.2'
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index ff3606c470..a6cccabf32 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -4852,7 +4852,7 @@ update_router_have_minimum_dir_info(void) count_usable_descriptors(&num_present, &num_usable, consensus, options, now, options->EntryNodes); - if (num_usable && (num_present == 0)) { + if (!num_usable || !num_present) { tor_snprintf(dir_info_status, sizeof(dir_info_status), "We have only %d/%d usable entry node descriptors.", num_present, num_usable); |