diff --git a/contrib/unzip/unzip.c b/contrib/unzip/unzip.c index 51a3d8b4e..0fac0b29d 100644 --- a/contrib/unzip/unzip.c +++ b/contrib/unzip/unzip.c @@ -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;