Commit 4d73f422 authored by anonymous's avatar anonymous
Browse files

Handle fseek error

parent 97d6e917
......@@ -223,7 +223,10 @@ uint32_t diff_hashdb_load(uint8_t *hashname, uint8_t *fname, uint64_t offset,
// Seek past this entry, "next" number of bytes from "next" position,
// but we read "next" AND "len".
fseek(fd, sha_hdr.next - sizeof(sha_hdr.len), SEEK_CUR);
if (fseek(fd, sha_hdr.next - sizeof(sha_hdr.len), SEEK_CUR) < 0) {
BD_DEBUG(DBG_BDPLUS,"[diff] Seek to next hash_db.bin failed\n");
break;
}
} // while fread
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment