mirror of
https://github.com/curl/curl.git
synced 2026-06-14 01:25:37 +03:00
fixup return error better
This commit is contained in:
parent
6bf86c7504
commit
fb7993df53
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue