summaryrefslogtreecommitdiffstats
path: root/src/phbf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/phbf.c')
-rw-r--r--src/phbf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/phbf.c b/src/phbf.c
index 2fd705d4..5091d5f4 100644
--- a/src/phbf.c
+++ b/src/phbf.c
@@ -364,7 +364,8 @@ static bf_status_t photorec_bf_pad(struct ph_param *params, file_recovery_t *fil
uint64_t file_size_backup;
nbr=0;
offset_error_tmp=file_recovery->offset_error;
- fseek(file_recovery->handle, file_recovery->file_size, SEEK_SET);
+ if(fseek(file_recovery->handle, file_recovery->file_size, SEEK_SET) < 0)
+ return BF_ENOENT;
#if 1
if(file_recovery->data_check!=NULL)
{