From 6f6608c2aa6122c87ea1e8a937708d08e6c5785e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 4 Dec 2009 16:32:42 +0100 Subject: [PATCH] s3: let tdb_validate_child() use tdb_check() metze --- source3/lib/tdb_validate.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source3/lib/tdb_validate.c b/source3/lib/tdb_validate.c index 092546e3eb5..a1fb1850db8 100644 --- a/source3/lib/tdb_validate.c +++ b/source3/lib/tdb_validate.c @@ -44,6 +44,17 @@ static int tdb_validate_child(struct tdb_context *tdb, goto out; } + /* + * we can simplify this by passing a check function, + * but I don't want to change all the callers... + */ + ret = tdb_check(tdb, NULL, NULL); + if (ret == -1) { + v_status.tdb_error = True; + v_status.success = False; + goto out; + } + /* Check if the tdb's freelist is good. */ if (tdb_validate_freelist(tdb, &num_entries) == -1) { v_status.bad_freelist = True; -- 2.11.4.GIT