summaryrefslogtreecommitdiffstats
path: root/src/file_ace.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-11-01 11:13:27 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-11-01 11:13:27 +0100
commit3718ffa3328b530ad61bba2007842716201b89a2 (patch)
treeee26ce4ec629e929af51ab6aebf9cf910420e815 /src/file_ace.c
parent650b7d41e93b08100d22d386f5d123d971c4884e (diff)
PhotoRec: record last valid offset of a file, will be usefull for bruteforce
Diffstat (limited to 'src/file_ace.c')
-rw-r--r--src/file_ace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file_ace.c b/src/file_ace.c
index 20f56d5..6309e95 100644
--- a/src/file_ace.c
+++ b/src/file_ace.c
@@ -72,8 +72,9 @@ static void file_check_ace(file_recovery_t *file_recovery)
{
fseek(file_recovery->handle, 0, SEEK_SET);
+ file_recovery->offset_error = 0;
+ file_recovery->offset_ok = 0;
file_recovery->file_size = 0;
- file_recovery->offset_error=0;
#ifdef DEBUG_ACE
log_trace("file_check_ace\n");
#endif