diff options
author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2021-04-27 15:48:01 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-04-29 15:02:32 +0200 |
commit | 5c932f8fe9dad94a7417702958ffa9e8db67c549 (patch) | |
tree | be8e86d19e8d19571ec04a351578131f4836a2c5 /lib/content_encoding.c | |
parent | f4b85d24b21058215dd67e1c804d47c7b4ee2fda (diff) | |
download | curl-5c932f8fe9dad94a7417702958ffa9e8db67c549.tar.gz |
lib: fix 0-length Curl_client_write calls
Closes #6954
Diffstat (limited to 'lib/content_encoding.c')
-rw-r--r-- | lib/content_encoding.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/content_encoding.c b/lib/content_encoding.c index 77814ac30..a84ff543b 100644 --- a/lib/content_encoding.c +++ b/lib/content_encoding.c @@ -985,7 +985,8 @@ new_unencoding_writer(struct Curl_easy *data, return writer; } -/* Write data using an unencoding writer stack. */ +/* Write data using an unencoding writer stack. "nbytes" is not + allowed to be 0. */ CURLcode Curl_unencode_write(struct Curl_easy *data, struct contenc_writer *writer, const char *buf, size_t nbytes) |