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

View file

@ -720,7 +720,7 @@ int Curl_sec_read_msg(struct Curl_easy *data, struct connectdata *conn,
int */
int decoded_len;
char *buf;
int ret_code = 0;
int ret_code = -1;
size_t decoded_sz = 0;
CURLcode error;