projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44e2d45
)
Remove unnecessary memset after PR #2583 avoids accessing
author
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Mon, 13 Feb 2017 12:21:34 +0000
(13:21 +0100)
committer
Rich Salz
<rsalz@openssl.org>
Tue, 28 Feb 2017 14:03:54 +0000
(09:03 -0500)
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)
ssl/ssl_sess.c
patch
|
blob
|
history
diff --git
a/ssl/ssl_sess.c
b/ssl/ssl_sess.c
index ddd949d4b4b9740c11943e11233f547489422c69..be3c4c35262c011c0e9aba220f476f507853ef00 100644
(file)
--- 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;