aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-05-10 15:55:12 -0400
committerNick Mathewson <nickm@torproject.org>2012-05-10 15:55:12 -0400
commit62f8e3926d62ff4aaefedfe89355f04f3a8d74fa (patch)
treec6289a9175a5e9b74603918781de07e50f67c601 /src/common
parent0b1a334842f632b935d0b23757722d06bd145724 (diff)
parentf0212197cccf461e431d6807a94ea0fdc411e179 (diff)
downloadtor-62f8e3926d62ff4aaefedfe89355f04f3a8d74fa.tar.gz
tor-62f8e3926d62ff4aaefedfe89355f04f3a8d74fa.zip
Merge remote-tracking branch 'public/bug4591'
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tortls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index cffba2e6ce..12d982defb 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -1370,7 +1370,9 @@ tor_tls_server_info_callback(const SSL *ssl, int type, int val)
/* Now check the cipher list. */
if (tor_tls_client_is_using_v2_ciphers(ssl, ADDR(tls))) {
- /*XXXX_TLS keep this from happening more than once! */
+ if (tls->wasV2Handshake)
+ return; /* We already turned this stuff off for the first handshake;
+ * This is a renegotiation. */
/* Yes, we're casting away the const from ssl. This is very naughty of us.
* Let's hope openssl doesn't notice! */