fixup return error better

This commit is contained in:
Daniel Stenberg 2025-09-16 11:32:25 +02:00
parent 6bf86c7504
commit fb7993df53
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 3 additions and 1 deletions

View file

@ -599,6 +599,8 @@ static CURLcode ftp_readresp(struct Curl_easy *data,
/* normal ftp stuff we pass through! */
break;
}
if(code < 0)
return CURLE_RECV_ERROR;
}
#endif