vtls: remove duplicate assign

Curl_ssl_peer_cleanup() already clears the ->sni field, no point in
assigning it again.

Spotted by CodeSonar

Closes #13626
This commit is contained in:
Daniel Stenberg 2024-05-13 20:00:23 +02:00
parent 11e4ff5e26
commit 6080805daa
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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,