summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-04-13 13:02:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2023-04-13 18:14:30 +0200
commit7e68133d041376c1012571e5a2386bb03a620a8e (patch)
tree14065acfcdc1cb0a998df011ff9cf52060d2a8bd /lib
parent41a53b159d1836a6b4fecbd3fac966a7eec83282 (diff)
downloadcurl-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.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index d1c65f458..f50d7baf6 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -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)) {