summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_sess.c
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2017-02-13 13:21:34 +0100
committerRich Salz <rsalz@openssl.org>2017-02-28 09:03:54 -0500
commitfa7e9ed3d16c7e713b67a84de9683837610cd318 (patch)
tree857f9bcb2f51974ec39013b0c246acad933e1a8d /ssl/ssl_sess.c
parent44e2d45ffdcda4160d7d36a5b0ee702d0ebad8ac (diff)
Remove unnecessary memset after PR #2583 avoids accessing
the uninitialized session_id now. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2608)
Diffstat (limited to 'ssl/ssl_sess.c')
-rw-r--r--ssl/ssl_sess.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c
index ddd949d4b4..be3c4c3526 100644
--- a/ssl/ssl_sess.c
+++ b/ssl/ssl_sess.c
@@ -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;