diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-11-06 15:24:52 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-11-06 15:24:52 -0500 |
commit | 0a58567ce3418f410cf1dd0143dd3e56b4a4bd1f (patch) | |
tree | e0f0f5839e7ad542131c60589db6efe6505fc084 /src/or/connection_or.c | |
parent | eb1faf8a0a51592618b5595fc152d26d71e3f43e (diff) | |
parent | ce0a89e2624471272ffc4950c5069d9b81a7f0b9 (diff) | |
download | tor-0a58567ce3418f410cf1dd0143dd3e56b4a4bd1f.tar.gz tor-0a58567ce3418f410cf1dd0143dd3e56b4a4bd1f.zip |
Merge commit 'origin/maint-0.2.1'
Conflicts:
src/common/tortls.c
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index c3d35e1df6..bbd64393c3 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -799,6 +799,7 @@ connection_or_tls_renegotiated_cb(tor_tls_t *tls, void *_conn) /* Don't invoke this again. */ tor_tls_set_renegotiate_callback(tls, NULL, NULL); + tor_tls_block_renegotiation(tls); if (connection_tls_finish_handshake(conn) < 0) { /* XXXX_TLS double-check that it's ok to do this from inside read. */ @@ -1045,6 +1046,7 @@ connection_tls_finish_handshake(or_connection_t *conn) connection_or_init_conn_from_address(conn, &conn->_base.addr, conn->_base.port, digest_rcvd, 0); } + tor_tls_block_renegotiation(conn->tls); return connection_or_set_state_open(conn); } else { conn->_base.state = OR_CONN_STATE_OR_HANDSHAKING; |