summaryrefslogtreecommitdiffstats
path: root/src/phbf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-11-01 13:38:06 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2013-11-01 13:38:06 +0100
commit7172224ac4cbe9f4c40db5df505cfe8725108e53 (patch)
tree6b0d5445d46c577975c28b8192c0af39f316d5bc /src/phbf.c
parent9440623c9768c7e235be10ed595149fdb644a911 (diff)
Fix various issues reported by Coverity scan
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 2fd705d..5091d5f 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)
{