From: Marcel Raad Date: Sun, 2 Feb 2020 12:35:54 +0000 (+0100) Subject: openssl: remove redundant assignment X-Git-Tag: curl-7_69_0~153 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5cd0f5cc7fbbb4d0bf098b2eb95611eb7b987eff;p=thirdparty%2Fcurl.git openssl: remove redundant assignment Fixes a scan-build failure on Bionic. Closes https://github.com/curl/curl/pull/4872 --- diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 3c4066cdc1..1d09cadca8 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -2212,7 +2212,6 @@ set_ssl_version_min_max(SSL_CTX *ctx, struct connectdata *conn) curl_ssl_version_max = SSL_CONN_CONFIG(version_max); /* convert cURL max SSL version option to OpenSSL constant */ - ossl_ssl_version_max = 0; switch(curl_ssl_version_max) { case CURL_SSLVERSION_MAX_TLSv1_0: ossl_ssl_version_max = TLS1_VERSION;