From: Daniel Stenberg Date: Tue, 13 Mar 2001 22:20:14 +0000 (+0000) Subject: Added a failf() error message when the chunked read returns failure X-Git-Tag: curl-7_7-beta3~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9cde0646fe8c17e890c5b78e007f861c3aa4c50;p=curl Added a failf() error message when the chunked read returns failure --- diff --git a/lib/transfer.c b/lib/transfer.c index b65fc541e..edbff71ff 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -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 */