diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-04-13 13:02:54 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-04-13 18:14:30 +0200 |
commit | 7e68133d041376c1012571e5a2386bb03a620a8e (patch) | |
tree | 14065acfcdc1cb0a998df011ff9cf52060d2a8bd /lib | |
parent | 41a53b159d1836a6b4fecbd3fac966a7eec83282 (diff) | |
download | curl-7e68133d041376c1012571e5a2386bb03a620a8e.tar.gz |
ftp: fix 'portsock' variable was assigned the same value
Pointed out by PVS
Ref: #10929
Closes #10955
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 2 |
1 files changed, 0 insertions, 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)) { |