Added a failf() error message when the chunked read returns failure

This commit is contained in:
Daniel Stenberg 2001-03-13 22:20:14 +00:00
parent 195233ed5c
commit f9cde0646f

View File

@ -571,8 +571,10 @@ Transfer(struct connectdata *c_conn)
CHUNKcode res =
Curl_httpchunk_read(conn, str, nread, &nread);
if(CHUNKE_OK < res)
if(CHUNKE_OK < res) {
failf(data, "Receeived problem in the chunky parser");
return CURLE_READ_ERROR;
}
else if(CHUNKE_STOP == res) {
/* we're done reading chunks! */
keepon &= ~KEEP_READ; /* read no more */