mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
parent
fe166a9bdc
commit
05728fd8bc
@ -94,7 +94,7 @@ namespace ssl_util
|
||||
/**
|
||||
* Buffer length for zlib inflate/deflate
|
||||
*/
|
||||
#define ZBUFFER 65536
|
||||
#define ZBUFFER 16384
|
||||
|
||||
int zlib_decompress(const std::string& in, std::string& out)
|
||||
{
|
||||
@ -138,7 +138,8 @@ namespace ssl_util
|
||||
|
||||
rc = inflate(&zs, Z_FINISH);
|
||||
|
||||
if ( rc != Z_STREAM_END && rc != Z_OK )
|
||||
if ( (rc != Z_STREAM_END && rc != Z_OK && rc != Z_BUF_ERROR)
|
||||
|| (rc == Z_BUF_ERROR && zs.avail_out == ZBUFFER) )
|
||||
{
|
||||
inflateEnd(&zs);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user