summaryrefslogtreecommitdiff
path: root/main/openssl/ssl/s23_srvr.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/openssl/ssl/s23_srvr.c')
-rw-r--r--main/openssl/ssl/s23_srvr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/openssl/ssl/s23_srvr.c b/main/openssl/ssl/s23_srvr.c
index 48778490..82d6867b 100644
--- a/main/openssl/ssl/s23_srvr.c
+++ b/main/openssl/ssl/s23_srvr.c
@@ -425,6 +425,9 @@ int ssl23_get_client_hello(SSL *s)
}
}
+ /* ensure that TLS_MAX_VERSION is up-to-date */
+ OPENSSL_assert(s->version <= TLS_MAX_VERSION);
+
#ifdef OPENSSL_FIPS
if (FIPS_mode() && (s->version < TLS1_VERSION))
{