summaryrefslogtreecommitdiffstats
path: root/src/file_caf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-11-22 08:27:33 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-11-22 08:27:33 +0100
commit2394d9d625d32a2b2b9fb6082426fa1e2f9134ac (patch)
tree2603736e14057113a3235b9fc557c65a87d24443 /src/file_caf.c
parentfe1d27b519cabf351d037efde1867eb5ba134883 (diff)
PhotoRec: avoid an endless loop during .caf recovery
Diffstat (limited to 'src/file_caf.c')
-rw-r--r--src/file_caf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file_caf.c b/src/file_caf.c
index b2e18e5..27e47c8 100644
--- a/src/file_caf.c
+++ b/src/file_caf.c
@@ -90,6 +90,7 @@ static int data_check_caf(const unsigned char *buffer, const unsigned int buffer
{
file_recovery->data_check=NULL;
file_recovery->file_check=NULL;
+ return 2;
}
}
#ifdef DEBUG_CAF