diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-01-30 22:23:44 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-01-30 22:23:44 +0000 |
commit | 1793aeafae6179c48592b45ea48317a33e24b1b5 (patch) | |
tree | cb724b1b37b79b540ba8b4da8f074c030712cf7c /src/or/connection_or.c | |
parent | 78633b3a03a415983ff295b6b78adfbbd6922d36 (diff) | |
download | tor-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.c | 2 |
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] = '$'; |