ftp: fix 'portsock' variable was assigned the same value

Pointed out by PVS

Ref: #10929
Closes #10955
This commit is contained in:
Daniel Stenberg 2023-04-13 13:02:54 +02:00
parent 41a53b159d
commit 7e68133d04
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -1085,8 +1085,6 @@ static CURLcode ftp_state_use_port(struct Curl_easy *data,
host = NULL;
/* step 2, create a socket for the requested address */
portsock = CURL_SOCKET_BAD;
error = 0;
for(ai = res; ai; ai = ai->ai_next) {
if(Curl_socket_open(data, ai, NULL, conn->transport, &portsock)) {