summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_sess.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-07-07 12:21:29 +0200
committerMatt Caswell <matt@openssl.org>2017-07-07 16:02:09 +0200
commit515982154031b679f58d5e2cbd7752294779221e (patch)
tree555d9e4af6b434a1f8f3eea1057dc81860eced9b /ssl/ssl_sess.c
parentUpdate SSL_trace() to know about ticket_nonce (diff)
downloadopenssl-515982154031b679f58d5e2cbd7752294779221e.tar.xz
openssl-515982154031b679f58d5e2cbd7752294779221e.zip
Updates following review feedback of TLSv1.3 draft-21 code
Reviewed-by: Ben Kaduk <kaduk@mit.edu> (Merged from https://github.com/openssl/openssl/pull/3852)
Diffstat (limited to 'ssl/ssl_sess.c')
-rw-r--r--ssl/ssl_sess.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c
index 8740e15daa..a1d2013187 100644
--- a/ssl/ssl_sess.c
+++ b/ssl/ssl_sess.c
@@ -128,9 +128,8 @@ SSL_SESSION *ssl_session_dup(SSL_SESSION *src, int ticket)
#endif
dest->peer_chain = NULL;
dest->peer = NULL;
- memset(&dest->ex_data, 0, sizeof(dest->ex_data));
-
dest->ext.tick_nonce = NULL;
+ memset(&dest->ex_data, 0, sizeof(dest->ex_data));
/* We deliberately don't copy the prev and next pointers */
dest->prev = NULL;