summaryrefslogtreecommitdiffstats
path: root/src/file_plist.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-09-30 16:31:09 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-09-30 16:31:09 +0200
commit20b02dd16415e21e57c7a36f5e12d631501d8c75 (patch)
tree1817c862eec9e1555f8bd5e4974c08a2c8eb37fe /src/file_plist.c
parent8a5bc214d7b52627aad61a243140e6a7f0987ace (diff)
PhotoRec: for some file formats, check if file is complete when a new file is found
Diffstat (limited to 'src/file_plist.c')
-rw-r--r--src/file_plist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_plist.c b/src/file_plist.c
index fdb0ae0..63e5767 100644
--- a/src/file_plist.c
+++ b/src/file_plist.c
@@ -51,8 +51,8 @@ static int header_check_plist(const unsigned char *buffer, const unsigned int bu
if( file_recovery->file_stat->file_hint==&file_hint_qbb ||
file_recovery->file_stat->file_hint==&file_hint_sqlite)
{
- header_ignored(file_recovery_new);
- return 0;
+ if(header_ignored_adv(file_recovery, file_recovery_new)==0)
+ return 0;
}
}
reset_file_recovery(file_recovery_new);