mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-04 22:21:36 +09:00
1 parent
bb2571e367
commit
af55e166f6
1 file changed
+2
-1
@@ -173,7 +173,8 @@ int zlib_decompress(const std::string& in, std::string& out)
|
||||
|
||||
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user