From bac12f79fbf8e3e6cccece2c48bd5d6e68d96827 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 27 Dec 2025 10:45:47 +0100 Subject: [PATCH] fixup ftp to retain CURLE_FTP_PORT_FAILED when not OOM --- lib/ftp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ftp.c b/lib/ftp.c index 9bfcab3da0..27e4c8aadd 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -1031,6 +1031,7 @@ static CURLcode ftp_state_use_port(struct Curl_easy *data, if(result) { if(result == CURLE_OUT_OF_MEMORY) goto out; + result = CURLE_FTP_PORT_FAILED; error = SOCKERRNO; continue; }