]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: acknowledge --tls-max for default version too
authorDaniel Stenberg <daniel@haxx.se>
Tue, 15 May 2018 08:41:25 +0000 (10:41 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 17 May 2018 11:34:47 +0000 (13:34 +0200)
... previously it only used the max setting if a TLS version was also
explicitly asked for.

Reported-by: byte_bucket
Fixes #2571
Closes #2572

lib/vtls/openssl.c

index f6a4bd3fbf48e8dd7e8d25025e7003ae6cbf79a3..a7bbdb2fd82eec84907304b2006b5c0b09cec048 100644 (file)
@@ -2325,8 +2325,7 @@ static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex)
   case CURL_SSLVERSION_TLSv1:
     ctx_options |= SSL_OP_NO_SSLv2;
     ctx_options |= SSL_OP_NO_SSLv3;
-    break;
-
+    /* FALLTHROUGH */
   case CURL_SSLVERSION_TLSv1_0:
   case CURL_SSLVERSION_TLSv1_1:
   case CURL_SSLVERSION_TLSv1_2: