Skip to content

Commit

Permalink
ftp: fix 'portsock' variable was assigned the same value
Browse files Browse the repository at this point in the history
Pointed out by PVS

Ref: #10929
Closes #10955
  • Loading branch information
bagder committed Apr 13, 2023
1 parent 41a53b1 commit 7e68133
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/ftp.c
Expand Up @@ -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)) {
Expand Down

0 comments on commit 7e68133

Please sign in to comment.