Move session version consistency check
authorMatt Caswell <matt@openssl.org>
Thu, 19 Jan 2017 10:46:53 +0000 (10:46 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 30 Jan 2017 10:18:21 +0000 (10:18 +0000)
commit128ae2769270f467982601b743964fb840aa2926
tree82621617facf303665ca046d363652d6b8e373ba
parentb3ad72ce1de399322c4362acc2d4d792f7f14893
Move session version consistency check

Make sure the session version consistency check is inside
ssl_get_prev_session(). Also fixes a bug where an inconsistent version can
cause a seg fault in TLSv1.3.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2259)
ssl/ssl_sess.c
ssl/statem/statem_srvr.c