diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-03-15 12:42:41 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-03-15 12:42:41 +0000 |
commit | 5f758fbd11a2da7925aef93c8cfd177c2e79aca2 (patch) | |
tree | 57d0b7bcb4b5b683f9a061fffbf3701bbc9c944e | |
parent | fb29529a52cd4d889173e30d50ed08cc05dee198 (diff) |
make sure we return CURLE_WRITE_ERROR if the write callback returned
an error, even if we were decoding a chunked-encoded transfer
-rw-r--r-- | lib/transfer.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |