From: Daniel Stenberg Date: Mon, 6 Oct 2025 08:34:22 +0000 (+0200) Subject: ftp: remove misleading comments X-Git-Tag: rc-8_17_0-1~112 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b0e7cb7c677cef10d4d1baf2fc2116ff909a407;p=thirdparty%2Fcurl.git ftp: remove misleading comments They indicated that sockets would not be closed but they are. Reported-by: Joshua Rogers Closes #18871 --- diff --git a/lib/ftp.c b/lib/ftp.c index 402c13a07c..32d3c445df 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -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; }