[or-cvs] Only warn about a down node once

Nick Mathewson nickm at seul.org
Tue Apr 25 06:20:49 UTC 2006


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv13376/src/or

Modified Files:
	routerlist.c 
Log Message:
Only warn about a down node once

Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.507
retrieving revision 1.508
diff -u -p -d -r1.507 -r1.508
--- routerlist.c	25 Apr 2006 06:02:46 -0000	1.507
+++ routerlist.c	25 Apr 2006 06:20:47 -0000	1.508
@@ -2297,7 +2297,7 @@ router_get_combined_status_by_nickname(c
                " but none is listed as named by the directory authorites. "
                "Choosing one arbitrarily.");
     }
-  } else if (warn_if_unnamed && best) {
+  } else if (warn_if_unnamed && best && !best->name_lookup_warned) {
     char fp[HEX_DIGEST_LEN+1];
     base16_encode(fp, sizeof(fp),
                   best->status.identity_digest, DIGEST_LEN);



More information about the tor-commits mailing list