Commit 0cbedc52 authored by Rusty Russell's avatar Rusty Russell

tdb2: fix two bogus returns in check.c

Two missed cases in b2100462 (tdb2: change API to return the error
value.)
parent 751a8a34
......@@ -131,7 +131,7 @@ static enum TDB_ERROR check_hash_chain(struct tdb_context *tdb,
ecode = check_hash_tree(tdb, off, 0, hash, 64,
used, num_used, num_found, check, private_data);
if (ecode != TDB_SUCCESS) {
return false;
return ecode;
}
off = tdb_read_off(tdb, off + offsetof(struct tdb_chain, next));
......@@ -526,7 +526,7 @@ static enum TDB_ERROR check_free_table(struct tdb_context *tdb,
}
ecode = check_free(tdb, off, &f, prev, ftable_num, i);
if (ecode != TDB_SUCCESS) {
return false;
return ecode;
}
/* FIXME: Check hash bits */
......
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