aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-04-08 21:12:07 +0000
committerRoger Dingledine <arma@torproject.org>2006-04-08 21:12:07 +0000
commit24b2e0530af6871f7b152bf731d2c5f2208b1c06 (patch)
tree3c5a4813e1760091f08c7ce6ff235efd8abd302c
parentb5737aab91b823c8b208e8c68907058b089fb9ae (diff)
downloadtor-24b2e0530af6871f7b152bf731d2c5f2208b1c06.tar
tor-24b2e0530af6871f7b152bf731d2c5f2208b1c06.tar.gz
clean up the log lines more, and note a future work.
svn:r6324
-rw-r--r--src/or/dirserv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 8d2c7fc88..828507448 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1637,18 +1637,19 @@ dirserv_orconn_tls_done(const char *address,
int drop = 0;
if (strcasecmp(address, ri->address) || or_port != ri->or_port)
continue;
+ /* XXX For 0.1.2.x, we should do something smarter here than !is_valid. */
if (!ri->is_valid) {
/* We have a router at the same address! */
if (strcasecmp(ri->nickname, nickname_rcvd)) {
log_notice(LD_DIRSERV,
- "Dropping old descriptor: nickname '%s' does not match "
- "nickname '%s' in new cert from %s:%d",
+ "Dropping old invalid descriptor: nickname '%s' does "
+ "not match nickname '%s' in new cert from %s:%d",
ri->nickname, nickname_rcvd, address, or_port);
drop = 1;
} else if (memcmp(ri->cache_info.identity_digest, digest_rcvd,
DIGEST_LEN)) {
log_notice(LD_DIRSERV,
- "Dropping old descriptor for nickname '%s': "
+ "Dropping old invalid descriptor for nickname '%s': "
"identity key does not match key in new cert from %s:%d",
ri->nickname, address, or_port);
drop = 1;