summaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-01-30 22:23:44 +0000
committerNick Mathewson <nickm@torproject.org>2008-01-30 22:23:44 +0000
commit1793aeafae6179c48592b45ea48317a33e24b1b5 (patch)
treecb724b1b37b79b540ba8b4da8f074c030712cf7c /src/or/connection_or.c
parent78633b3a03a415983ff295b6b78adfbbd6922d36 (diff)
downloadtor-1793aeafae6179c48592b45ea48317a33e24b1b5.tar.gz
tor-1793aeafae6179c48592b45ea48317a33e24b1b5.zip
r17852@catbus: nickm | 2008-01-30 17:23:36 -0500
Correctly insert connections into the identity->connection map when we connect to a bridge without having specified its key. Fixes bug 574. svn:r13341
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index 144d0acf5b..037d71364d 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -748,7 +748,7 @@ connection_or_check_valid_tls_handshake(or_connection_t *conn,
}
if (started_here && tor_digest_is_zero(conn->identity_digest)) {
- memcpy(conn->identity_digest, digest_rcvd_out, DIGEST_LEN);
+ connection_or_set_identity_digest(conn, digest_rcvd_out);
tor_free(conn->nickname);
conn->nickname = tor_malloc(HEX_DIGEST_LEN+2);
conn->nickname[0] = '$';