Skip to content
Snippets Groups Projects
Commit 1e62d24d authored by Roger Dingledine's avatar Roger Dingledine
Browse files

bugfix: only require the correct key if the nickname is for

a verified router


svn:r2084
parent c83f0e94
No related branches found
No related tags found
No related merge requests found
......@@ -309,7 +309,8 @@ connection_tls_finish_handshake(connection_t *conn) {
crypto_free_pk_env(identity_rcvd);
router = router_get_by_nickname(nickname);
if(router && /* we know this nickname; make sure it's the right guy */
if(router && /* we know this nickname */
router->is_verified && /* make sure it's the right guy */
memcmp(digest_rcvd, router->identity_digest, DIGEST_LEN) != 0) {
log_fn(LOG_WARN, "Identity key not as expected for %s", nickname);
return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment