Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ssl
diff options
context:
space:
mode:
authorLutz Jänicke <jaenicke@openssl.org>2002-11-15 13:51:40 +0300
committerLutz Jänicke <jaenicke@openssl.org>2002-11-15 13:51:40 +0300
commitda91e37d37049a4d2bb09384ec937545eaf3678f (patch)
tree0202959d77462e1ecf6ddc4e04fc589d68a2fa5a /ssl
parent2758c44398431269bc32f9ae3f08b73e181d1c6d (diff)
The pointer to the cipher object is not yet set, when session was reloaded
from external cache (using d2i_SSL_SESSION). Perform comparison based on the cipher's id instead. Submitted by: Steve Haslam <araqnid@innocent.com> Reviewed by: PR: 288
Diffstat (limited to 'ssl')
-rw-r--r--ssl/s3_clnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c
index 6507d5db71..44ad368d0e 100644
--- a/ssl/s3_clnt.c
+++ b/ssl/s3_clnt.c
@@ -696,7 +696,7 @@ static int ssl3_get_server_hello(SSL *s)
goto f_err;
}
- if (s->hit && (s->session->cipher != c))
+ if (s->hit && (s->session->cipher_id != c->id))
{
if (!(s->options &
SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG))