]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
bugfix: only require the correct key if the nickname is for
authorRoger Dingledine <arma@torproject.org>
Wed, 21 Jul 2004 18:20:09 +0000 (18:20 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 21 Jul 2004 18:20:09 +0000 (18:20 +0000)
a verified router

svn:r2084

src/or/connection_or.c

index bf9975d95e51533ffd212ff712ddc1407483cc64..4c07f1bec087d490a59806d5ee8ca4b7df8429c3 100644 (file)
@@ -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;