Skip to content

Commit

Permalink
vtls: remove duplicate assign
Browse files Browse the repository at this point in the history
Curl_ssl_peer_cleanup() already clears the ->sni field, no point in
assigning it again.

Spotted by CodeSonar

Closes #13626
  • Loading branch information
bagder committed May 14, 2024
1 parent 11e4ff5 commit 6080805
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/vtls/vtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6080805

Please sign in to comment.