]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: remove redundant assignment
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 2 Feb 2020 12:35:54 +0000 (13:35 +0100)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 3 Feb 2020 13:20:51 +0000 (14:20 +0100)
Fixes a scan-build failure on Bionic.

Closes https://github.com/curl/curl/pull/4872

lib/vtls/openssl.c

index 3c4066cdc1ee56ba257e5bdcad6745d0065bab2b..1d09cadca8d72066e9767734f5da8f67bfc1493c 100644 (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);
 
   /* 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;