ftp: remove misleading comments

They indicated that sockets would not be closed but they are.

Reported-by: Joshua Rogers
Closes #18871
This commit is contained in:
Daniel Stenberg 2025-10-06 10:34:22 +02:00
parent 6ef4871f5d
commit 2b0e7cb7c6
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -2418,7 +2418,6 @@ static CURLcode ftp_state_stor_resp(struct Curl_easy *data,
if(ftpcode >= 400) {
failf(data, "Failed FTP upload: %0d", ftpcode);
ftp_state(data, ftpc, FTP_STOP);
/* oops, we never close the sockets! */
return CURLE_UPLOAD_FAILED;
}