summaryrefslogtreecommitdiffstats
path: root/src/file_ace.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-11-02 08:05:15 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-11-02 08:05:15 +0100
commitb24ea8407a949eaa4cd8b64ad8338ace47a0abcc (patch)
tree9619c1bb6f015454811e1a66493f6c9536c10b1c /src/file_ace.c
parent978df31cf2613f71dea4016f41927893e9d8170b (diff)
file_ace.c Fix regression introduced in #bbd33e63af7fb5f51de719a986f52f00bc6ce614
Diffstat (limited to 'src/file_ace.c')
-rw-r--r--src/file_ace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file_ace.c b/src/file_ace.c
index 7d70b1a..daeb975 100644
--- a/src/file_ace.c
+++ b/src/file_ace.c
@@ -102,6 +102,10 @@ static void file_check_ace(file_recovery_t *file_recovery)
(le16(h.flags)&1) ? le32(h.addsize):0);
#endif
/* Type 0=Archive header, 1=File block, 2=Recovery Record, 5 new_recovery ? */
+ if (h.type==0 && le16(h.size)==0)
+ {
+ return ;
+ }
if (h.type!=0 && h.type!=1 && h.type!=2 && h.type!=5)
{
#ifdef DEBUG_ACE