提交 fa7e9ed3 编写于 作者: B Bernd Edlinger 提交者: Rich Salz

Remove unnecessary memset after PR #2583 avoids accessing

the uninitialized session_id now.
Reviewed-by: NMatt Caswell <matt@openssl.org>
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2608)
上级 44e2d45f
......@@ -501,7 +501,6 @@ int ssl_get_prev_session(SSL *s, CLIENTHELLO_MSG *hello, int *al)
SSL_SESSION data;
data.ssl_version = s->version;
memset(data.session_id, 0, sizeof(data.session_id));
memcpy(data.session_id, hello->session_id, hello->session_id_len);
data.session_id_length = hello->session_id_len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册