diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index feb1e3b0b..609b00596 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -958,7 +958,7 @@ int ssl3_get_server_hello(SSL *s) al = SSL_AD_PROTOCOL_VERSION; goto f_err; } - s->version = s->method->version; + s->session->ssl_version = s->version = s->method->version; } if ((p[0] != (s->version >> 8)) || (p[1] != (s->version & 0xff))) {