summaryrefslogtreecommitdiffstats
path: root/src/file_spf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-10-15 12:10:10 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-10-15 12:10:10 +0200
commit76887c43cb31eb37666db1f83466bfd0d63825dc (patch)
tree68df0cd8e2d9b4f22070e4b00f3d5f35b162077f /src/file_spf.c
parent0053652d699ac60dfd14afb0ea409e524783e90a (diff)
PhotoRec: check fseek return value in psf file validation
Diffstat (limited to 'src/file_spf.c')
-rw-r--r--src/file_spf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_spf.c b/src/file_spf.c
index 9da9b6e..4524d8d 100644
--- a/src/file_spf.c
+++ b/src/file_spf.c
@@ -73,12 +73,12 @@ static void file_check_spf(file_recovery_t *file_recovery)
{
unsigned char*buffer;
buffer=(unsigned char*)MALLOC(READ_SIZE);
+ file_recovery->file_size=0;
if(fseek(file_recovery->handle, 0, SEEK_SET)<0)
{
free(buffer);
return;
}
- file_recovery->file_size=0;
while(1)
{
int i;