unzip: Bail on bad compression method

pull/1498/head
Turo Lamminen 2017-11-15 12:32:24 +02:00
parent 0bc259fd95
commit 9b88715361
1 changed files with 1 additions and 1 deletions

View File

@ -1129,7 +1129,7 @@ extern int ZEXPORT unzOpenCurrentFile3 (file, method, level, raw, password)
if ((s->cur_file_info.compression_method!=0) &&
(s->cur_file_info.compression_method!=Z_DEFLATED))
err=UNZ_BADZIPFILE;
return UNZ_BADZIPFILE;
pfile_in_zip_read_info->crc32_wait=s->cur_file_info.crc;
pfile_in_zip_read_info->crc32=0;