[tor-commits] [tor/master] Suppress warning in networks with only 1 dirauth.

nickm at torproject.org nickm at torproject.org
Tue Feb 11 15:16:59 UTC 2014


commit ebe7e22045327d2352c1a7582759d46e966d69e0
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Sat Feb 8 11:02:27 2014 +0100

    Suppress warning in networks with only 1 dirauth.
---
 src/or/directory.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/or/directory.c b/src/or/directory.c
index ec1e776..fd4e796 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)) {





More information about the tor-commits mailing list