[or-cvs] quiet another instance where we whine to an innocent OR ope...

Roger Dingledine arma at seul.org
Wed Apr 6 18:55:17 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or

Modified Files:
	connection_or.c 
Log Message:
quiet another instance where we whine to an innocent OR operator's
logs when some other server switches keys unexpectedly.


Index: connection_or.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/connection_or.c,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -d -r1.166 -r1.167
--- connection_or.c	6 Apr 2005 05:35:06 -0000	1.166
+++ connection_or.c	6 Apr 2005 18:55:14 -0000	1.167
@@ -504,7 +504,8 @@
       char d[HEX_DIGEST_LEN+1];
       base16_encode(d, HEX_DIGEST_LEN+1, digest_rcvd, DIGEST_LEN);
       if (strcasecmp(d,conn->nickname+1)) {
-        log_fn(LOG_WARN, "Identity key not as expected for router at %s:%d: wanted %s but got %s",
+        log_fn(severity,
+               "Identity key not as expected for router at %s:%d: wanted %s but got %s",
                conn->address, conn->port, conn->nickname, d);
         control_event_or_conn_status(conn, OR_CONN_EVENT_FAILED);
         // XXX if we're an authdir_mode, forget about nickname's descriptor



More information about the tor-commits mailing list