]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Suppress warning in networks with only 1 dirauth.
authorKarsten Loesing <karsten.loesing@gmx.net>
Sat, 8 Feb 2014 10:02:27 +0000 (11:02 +0100)
committerKarsten Loesing <karsten.loesing@gmx.net>
Sat, 8 Feb 2014 10:02:27 +0000 (11:02 +0100)
src/or/directory.c

index ec1e776f034b307de2d8cc38bf04d80f4c9b3ce5..fd4e79638bdd1a18e3650c7d9f76896e752886d3 100644 (file)
@@ -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)) {