summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_packet.c')
-rw-r--r--src/lib/libssl/ssl_packet.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_packet.c b/src/lib/libssl/ssl_packet.c
index 0a0c5a29df..af56dcef7f 100644
--- a/src/lib/libssl/ssl_packet.c
+++ b/src/lib/libssl/ssl_packet.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_packet.c,v 1.11 2021/05/16 14:10:43 jsing Exp $ */ 1/* $OpenBSD: ssl_packet.c,v 1.12 2021/07/01 17:53:39 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -246,8 +246,7 @@ ssl_server_legacy_first_packet(SSL *s)
246 return 1; 246 return 1;
247 247
248 /* Only continue if this is not a version locked method. */ 248 /* Only continue if this is not a version locked method. */
249 if (s->method->internal->min_tls_version == 249 if (s->method->min_tls_version == s->method->max_tls_version)
250 s->method->internal->max_tls_version)
251 return 1; 250 return 1;
252 251
253 if (ssl_is_sslv2_client_hello(&header) == 1) { 252 if (ssl_is_sslv2_client_hello(&header) == 1) {