be consistent about printing out key digest $'s when we're getting a

different key than we expect


svn:r4609
This commit is contained in:
Roger Dingledine 2005-07-19 21:26:24 +00:00
parent f2bc79ba89
commit eedb7c243e

View File

@ -526,7 +526,7 @@ connection_or_check_valid_handshake(connection_t *conn, char *digest_rcvd)
if (strcasecmp(d,conn->nickname+1)) { if (strcasecmp(d,conn->nickname+1)) {
log_fn(severity, log_fn(severity,
"Identity key not as expected for router at %s:%d: wanted %s but got %s", "Identity key not as expected for router at %s:%d: wanted %s but got %s",
conn->address, conn->port, conn->nickname, d); conn->address, conn->port, conn->nickname+1, d);
control_event_or_conn_status(conn, OR_CONN_EVENT_FAILED); control_event_or_conn_status(conn, OR_CONN_EVENT_FAILED);
as_advertised = 0; as_advertised = 0;
} }