From f9cde0646fe8c17e890c5b78e007f861c3aa4c50 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Tue, 13 Mar 2001 22:20:14 +0000
Subject: [PATCH] Added a failf() error message when the chunked read returns
 failure

---
 lib/transfer.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/transfer.c b/lib/transfer.c
index b65fc541e3..edbff71ffe 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 */
-- 
GitLab