summaryrefslogtreecommitdiffstats
path: root/src/file_gz.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-09-30 16:27:05 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-09-30 16:27:05 +0200
commit8a5bc214d7b52627aad61a243140e6a7f0987ace (patch)
tree1986c3e7ca4c389572ca9d8279d33b179fc5008f /src/file_gz.c
parente50fae5d6b1b0d83a5c351ab80d0ce661136ecec (diff)
PhotoRec: check doc/OLE files when a new file is found
Diffstat (limited to 'src/file_gz.c')
-rw-r--r--src/file_gz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_gz.c b/src/file_gz.c
index 74e8369..ccdd21a 100644
--- a/src/file_gz.c
+++ b/src/file_gz.c
@@ -128,8 +128,8 @@ static int header_check_gz(const unsigned char *buffer, const unsigned int buffe
if(file_recovery->file_stat!=NULL &&
file_recovery->file_stat->file_hint==&file_hint_doc)
{
- header_ignored(file_recovery_new);
- return 0;
+ if(header_ignored_adv(file_recovery, file_recovery_new)==0)
+ return 0;
}
#if defined(HAVE_ZLIB_H) && defined(HAVE_LIBZ)
{