diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-10 06:19:56 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-10 06:19:56 +0000 |
commit | 7b184e6abc80c966017dae8fc7e196a04ce0b4c6 (patch) | |
tree | ec6fc0b6a656c3b98bea253f420bdf87db11f651 | |
parent | c88fd61e3485bf10c844d512718a862894d912f9 (diff) | |
download | busybox-w32-7b184e6abc80c966017dae8fc7e196a04ce0b4c6.tar.gz busybox-w32-7b184e6abc80c966017dae8fc7e196a04ce0b4c6.tar.bz2 busybox-w32-7b184e6abc80c966017dae8fc7e196a04ce0b4c6.zip |
Don't return 0 when there's an error.
git-svn-id: svn://busybox.net/trunk/busybox@13221 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | archival/libunarchive/decompress_unzip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c index e8767cef5..4c1d1780e 100644 --- a/archival/libunarchive/decompress_unzip.c +++ b/archival/libunarchive/decompress_unzip.c | |||
@@ -973,6 +973,7 @@ extern int inflate_gunzip(int in, int out) | |||
973 | /* Validate decompression - crc */ | 973 | /* Validate decompression - crc */ |
974 | if (stored_crc != (gunzip_crc ^ 0xffffffffL)) { | 974 | if (stored_crc != (gunzip_crc ^ 0xffffffffL)) { |
975 | bb_error_msg("crc error"); | 975 | bb_error_msg("crc error"); |
976 | return -1; | ||
976 | } | 977 | } |
977 | 978 | ||
978 | /* Validate decompression - size */ | 979 | /* Validate decompression - size */ |
@@ -980,6 +981,7 @@ extern int inflate_gunzip(int in, int out) | |||
980 | (bytebuffer[bytebuffer_offset] | (bytebuffer[bytebuffer_offset+1] << 8) | | 981 | (bytebuffer[bytebuffer_offset] | (bytebuffer[bytebuffer_offset+1] << 8) | |
981 | (bytebuffer[bytebuffer_offset+2] << 16) | (bytebuffer[bytebuffer_offset+3] << 24))) { | 982 | (bytebuffer[bytebuffer_offset+2] << 16) | (bytebuffer[bytebuffer_offset+3] << 24))) { |
982 | bb_error_msg("Incorrect length"); | 983 | bb_error_msg("Incorrect length"); |
984 | return -1; | ||
983 | } | 985 | } |
984 | 986 | ||
985 | return 0; | 987 | return 0; |