mirror of
https://github.com/curl/curl.git
synced 2026-04-15 18:31:46 +03:00
ftp: fix 'portsock' variable was assigned the same value
Pointed out by PVS Ref: #10929 Closes #10955
This commit is contained in:
parent
41a53b159d
commit
7e68133d04
1 changed files with 0 additions and 2 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue