diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index a15d70a15..79f3c3a9c 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -794,7 +794,6 @@ int ssl3_get_server_hello(SSL *s) else if (server_version != s->version) { OPENSSL_PUT_ERROR(SSL, ssl3_get_server_hello, SSL_R_WRONG_SSL_VERSION); - s->version = (s->version & 0xff00) | (server_version & 0xff); al = SSL_AD_PROTOCOL_VERSION; goto f_err; } diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index 3ec6e5a57..c45cf7130 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -1148,12 +1148,6 @@ int ssl3_get_client_hello(SSL *s) : (s->client_version < s->version)) { OPENSSL_PUT_ERROR(SSL, ssl3_get_client_hello, SSL_R_WRONG_VERSION_NUMBER); - if ((s->client_version>>8) == SSL3_VERSION_MAJOR && - !s->s3->have_version) - { - /* similar to ssl3_get_record, send alert using remote version number */ - s->version = s->client_version; - } al = SSL_AD_PROTOCOL_VERSION; goto f_err; }