From: Daniel Stenberg Date: Mon, 13 May 2024 18:00:23 +0000 (+0200) Subject: vtls: remove duplicate assign X-Git-Tag: curl-8_8_0~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6080805daa2f1741c03d39384be0e813861962af;p=thirdparty%2Fcurl.git vtls: remove duplicate assign Curl_ssl_peer_cleanup() already clears the ->sni field, no point in assigning it again. Spotted by CodeSonar Closes #13626 --- diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c index af7ebe65c5..570a10d5ac 100644 --- a/lib/vtls/vtls.c +++ b/lib/vtls/vtls.c @@ -1603,7 +1603,6 @@ CURLcode Curl_ssl_peer_init(struct ssl_peer *peer, struct Curl_cfilter *cf, } } - peer->sni = NULL; peer->type = get_peer_type(peer->hostname); if(peer->type == CURL_SSL_PEER_DNS && peer->hostname[0]) { /* not an IP address, normalize according to RCC 6066 ch. 3,