xbps_read_dict_from_archive_entry: handle all erros returned by zlib's inflate().

This commit is contained in:
Juan RP 2011-02-24 10:00:21 +01:00
parent 7c6119427c
commit e4c24e5fea

View File

@ -90,6 +90,8 @@ _xbps_uncompress_plist_data(char *xml, size_t len)
case Z_STREAM_ERROR:
case Z_NEED_DICT:
case Z_MEM_ERROR:
case Z_BUF_ERROR:
case Z_VERSION_ERROR:
(void)inflateEnd(&strm);
free(uncomp_xml);
return NULL;