aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-13 22:20:14 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-13 22:20:14 +0000
commitf9cde0646fe8c17e890c5b78e007f861c3aa4c50 (patch)
treea1a02eeb54e41de29224ed8713790e721097ad00 /lib
parent195233ed5c6aa8c325424072df7ea24074e7feff (diff)
Added a failf() error message when the chunked read returns failure
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c4
1 files changed, 3 insertions, 1 deletions
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 */