Commit 97d6e917 authored by anonymous's avatar anonymous
Browse files

Fix error check

parent 3c39e3a9
......@@ -212,7 +212,7 @@ uint32_t diff_hashdb_load(uint8_t *hashname, uint8_t *fname, uint64_t offset,
sha_hdr.next - (uint32_t)sizeof(sha_hdr.len));
// Read in all digests, perhaps error checking?
if (!fread(dst, sha_hdr.next - sizeof(sha_hdr.len), 1, fd)) {
if (fread(dst, sha_hdr.next - sizeof(sha_hdr.len), 1, fd) != 1) {
BD_DEBUG(DBG_BDPLUS,"[diff] Short read on hash_db.bin!\n");
}
// Update new len
......
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