summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_srvr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_srvr.c')
-rw-r--r--src/lib/libssl/ssl_srvr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_srvr.c b/src/lib/libssl/ssl_srvr.c
index ac3669550c..000cac6785 100644
--- a/src/lib/libssl/ssl_srvr.c
+++ b/src/lib/libssl/ssl_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_srvr.c,v 1.88 2020/10/14 16:57:33 jsing Exp $ */ 1/* $OpenBSD: ssl_srvr.c,v 1.89 2021/01/19 18:57:09 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -853,15 +853,15 @@ ssl3_get_client_hello(SSL *s)
853 if (!ssl_downgrade_max_version(s, &max_version)) 853 if (!ssl_downgrade_max_version(s, &max_version))
854 goto err; 854 goto err;
855 if (ssl_max_shared_version(s, client_version, &shared_version) != 1) { 855 if (ssl_max_shared_version(s, client_version, &shared_version) != 1) {
856 SSLerror(s, SSL_R_WRONG_VERSION_NUMBER);
857 if ((s->client_version >> 8) == SSL3_VERSION_MAJOR && 856 if ((s->client_version >> 8) == SSL3_VERSION_MAJOR &&
858 !s->internal->enc_write_ctx && !s->internal->write_hash) { 857 !tls12_record_layer_write_protected(s->internal->rl)) {
859 /* 858 /*
860 * Similar to ssl3_get_record, send alert using remote 859 * Similar to ssl3_get_record, send alert using remote
861 * version number. 860 * version number.
862 */ 861 */
863 s->version = s->client_version; 862 s->version = s->client_version;
864 } 863 }
864 SSLerror(s, SSL_R_WRONG_VERSION_NUMBER);
865 al = SSL_AD_PROTOCOL_VERSION; 865 al = SSL_AD_PROTOCOL_VERSION;
866 goto f_err; 866 goto f_err;
867 } 867 }