fixup ftp to retain CURLE_FTP_PORT_FAILED when not OOM

This commit is contained in:
Daniel Stenberg 2025-12-27 10:45:47 +01:00
parent 0f608a3b76
commit bac12f79fb
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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;
}