projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b23eff
)
Fix for a bug report that compressed files that are exactly 64 KiB long
author
Dan Fandrich
<dan@coneharvesters.com>
Mon, 7 Feb 2005 19:12:37 +0000
(19:12 +0000)
committer
Dan Fandrich
<dan@coneharvesters.com>
Mon, 7 Feb 2005 19:12:37 +0000
(19:12 +0000)
produce a zlib error.
lib/content_encoding.c
patch
|
blob
|
history
diff --git
a/lib/content_encoding.c
b/lib/content_encoding.c
index
473b82b
..
47f245e
100644
(file)
--- a/
lib/content_encoding.c
+++ b/
lib/content_encoding.c
@@
-128,7
+128,7
@@
inflate_stream(struct SessionHandle *data,
}
/* Done with these bytes, exit */
- if (status == Z_OK && z->avail_in == 0
&& z->avail_out > 0
) {
+ if (status == Z_OK && z->avail_in == 0) {
free(decomp);
return result;
}