1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

openssl: remove redundant assignment

Fixes a scan-build failure on Bionic.

Closes https://github.com/curl/curl/pull/4872
This commit is contained in:
Marcel Raad 2020-02-02 13:35:54 +01:00
parent 27956e9634
commit 5cd0f5cc7f
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02

View File

@ -2212,7 +2212,6 @@ set_ssl_version_min_max(SSL_CTX *ctx, struct connectdata *conn)
curl_ssl_version_max = SSL_CONN_CONFIG(version_max); curl_ssl_version_max = SSL_CONN_CONFIG(version_max);
/* convert cURL max SSL version option to OpenSSL constant */ /* convert cURL max SSL version option to OpenSSL constant */
ossl_ssl_version_max = 0;
switch(curl_ssl_version_max) { switch(curl_ssl_version_max) {
case CURL_SSLVERSION_MAX_TLSv1_0: case CURL_SSLVERSION_MAX_TLSv1_0:
ossl_ssl_version_max = TLS1_VERSION; ossl_ssl_version_max = TLS1_VERSION;