From fa7e9ed3d16c7e713b67a84de9683837610cd318 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Mon, 13 Feb 2017 13:21:34 +0100 Subject: [PATCH] Remove unnecessary memset after PR #2583 avoids accessing the uninitialized session_id now. Reviewed-by: Matt Caswell Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/2608) --- ssl/ssl_sess.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.25.1