提交 c5662053 编写于 作者: L Lutz Jänicke

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
上级 eaf6c61c
...@@ -722,7 +722,7 @@ static int ssl3_get_server_hello(SSL *s) ...@@ -722,7 +722,7 @@ static int ssl3_get_server_hello(SSL *s)
goto f_err; goto f_err;
} }
if (s->hit && (s->session->cipher != c)) if (s->hit && (s->session->cipher_id != c->id))
{ {
if (!(s->options & if (!(s->options &
SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG)) SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册