From 0cbedc52e54c8700c29907154c140a43f9773e2c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 17 Mar 2011 22:12:21 +1030 Subject: [PATCH 1/1] tdb2: fix two bogus returns in check.c Two missed cases in b21004624683 (tdb2: change API to return the error value.) --- ccan/tdb2/check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccan/tdb2/check.c b/ccan/tdb2/check.c index de1cb98b..6fdfac36 100644 --- a/ccan/tdb2/check.c +++ b/ccan/tdb2/check.c @@ -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 */ -- 2.39.2