]> granicus.if.org Git - curl/commitdiff
Added a failf() error message when the chunked read returns failure
authorDaniel Stenberg <daniel@haxx.se>
Tue, 13 Mar 2001 22:20:14 +0000 (22:20 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 13 Mar 2001 22:20:14 +0000 (22:20 +0000)
lib/transfer.c

index b65fc541e3d4215fb1efe2aa9437026236ec9dc9..edbff71ffe5994430d7178fb9403ae34c65eb6e5 100644 (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 */