From: Karsten Loesing Date: Sat, 8 Feb 2014 10:02:27 +0000 (+0100) Subject: Suppress warning in networks with only 1 dirauth. X-Git-Tag: tor-0.2.5.2-alpha~10^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ebe7e22045327d2352c1a7582759d46e966d69e0;p=thirdparty%2Ftor.git Suppress warning in networks with only 1 dirauth. --- diff --git a/src/or/directory.c b/src/or/directory.c index ec1e776f03..fd4e79638b 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -287,8 +287,12 @@ directory_post_to_dirservers(uint8_t dir_purpose, uint8_t router_purpose, if ((type & ds->type) == 0) continue; - if (exclude_self && router_digest_is_me(ds->digest)) + if (exclude_self && router_digest_is_me(ds->digest)) { + /* we don't upload to ourselves, but at least there's now at least + * one authority of this type that has what we wanted to upload. */ + found = 1; continue; + } if (options->StrictNodes && routerset_contains_routerstatus(options->ExcludeNodes, rs, -1)) {