mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
data_compress: fix problem with decompression after recent change
Fix bug 834 (various gzip-encoded documents were being truncated),
which I introduced with commit e441361f2c
.
Thanks to Witek for reporting the bug, Kalle for determining the
problematic commit, and Jonas for letting me know about the bug report(!).
This commit is contained in:
parent
74e2b217b2
commit
810a1fc591
@ -1024,7 +1024,9 @@ decompress_data(struct connection *conn, unsigned char *data, int len,
|
|||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if (state == FINISHING) {
|
||||||
/* state is FINISHING. Set to_read to some nice, big
|
/* state is FINISHING. Set to_read to some nice, big
|
||||||
* value to empty the encoded output queue by reading
|
* value to empty the encoded output queue by reading
|
||||||
* big chunks from it. */
|
* big chunks from it. */
|
||||||
|
Loading…
Reference in New Issue
Block a user