diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-10-02 20:43:22 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2017-10-03 14:39:34 +0300 |
commit | c9729853a5ccfc15d206c43be8e15aea93ae19ee (patch) | |
tree | 4e05bb01221e9a4cb54712f722ccd0abaf9f43cd /src/or/nodelist.c | |
parent | dddae36f5e0e9e088cd9aa98c6e4a6c904e1efa4 (diff) | |
download | tor-c9729853a5ccfc15d206c43be8e15aea93ae19ee.tar.gz tor-c9729853a5ccfc15d206c43be8e15aea93ae19ee.zip |
entrynodes: Be specific about how many primary descriptors we miss.
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r-- | src/or/nodelist.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c index df735a9d24..93dd43f3cd 100644 --- a/src/or/nodelist.c +++ b/src/or/nodelist.c @@ -2300,11 +2300,14 @@ update_router_have_minimum_dir_info(void) using_md = consensus->flavor == FLAV_MICRODESC; - if (! entry_guards_have_enough_dir_info_to_build_circuits()) { - strlcpy(dir_info_status, "We're missing descriptors for some of our " - "primary entry guards", sizeof(dir_info_status)); - res = 0; - goto done; + { /* Check entry guard dirinfo status */ + char *guard_error = entry_guards_get_dir_info_status_str(); + if (guard_error) { + strlcpy(dir_info_status, guard_error, sizeof(dir_info_status)); + tor_free(guard_error); + res = 0; + goto done; + } } /* Check fraction of available paths */ |