Commit f9cde064 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

parent 195233ed
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 */