Always ensure that session->cipher is set
authorMatt Caswell <matt@openssl.org>
Thu, 19 Jan 2017 15:01:55 +0000 (15:01 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 30 Jan 2017 10:18:22 +0000 (10:18 +0000)
commit534a43ffeaec03e50768ccf84d431f96f11256e3
treeb13507098f77003ce9bbb64955ec8b0b38918462
parent4086b42b2d58773bee8463f69eee4bf8c299b589
Always ensure that session->cipher is set

If we have deserialized the SSL_SESSION then in some circumstances the
session->cipher value is NULL. We were patching up in some places but not
in others. We should just do it as part of loading the SSL_SESSION.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2259)
ssl/ssl_asn1.c
ssl/ssl_ciph.c
ssl/ssl_locl.h
ssl/ssl_sess.c
ssl/statem/extensions_clnt.c
ssl/statem/extensions_srvr.c