From 5f758fbd11a2da7925aef93c8cfd177c2e79aca2 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 15 Mar 2002 12:42:41 +0000 Subject: make sure we return CURLE_WRITE_ERROR if the write callback returned an error, even if we were decoding a chunked-encoded transfer --- lib/transfer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/transfer.c') diff --git a/lib/transfer.c b/lib/transfer.c index b887d010a..e0dc7c918 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -693,7 +693,11 @@ CURLcode Curl_readwrite(struct connectdata *conn, Curl_httpchunk_read(conn, k->str, nread, &nread); if(CHUNKE_OK < res) { - failf(data, "Receeived problem in the chunky parser"); + if(CHUNKE_WRITE_ERROR == res) { + failf(data, "Failed writing data"); + return CURLE_WRITE_ERROR; + } + failf(data, "Received problem in the chunky parser"); return CURLE_READ_ERROR; } else if(CHUNKE_STOP == res) { -- cgit v1.2.3