summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-12-04 16:32:42 +0100
committerStefan Metzmacher <metze@samba.org>2009-12-07 19:56:55 +0100
commit6f6608c2aa6122c87ea1e8a937708d08e6c5785e (patch)
treee1b6ad9c2dd8103a54bcaf379a5d271ccdd35e70
parent886fe5b92082c2d18f97ff0bdcced52d38f344ca (diff)
downloadsamba-6f6608c2aa6122c87ea1e8a937708d08e6c5785e.tar.gz
samba-6f6608c2aa6122c87ea1e8a937708d08e6c5785e.tar.xz
samba-6f6608c2aa6122c87ea1e8a937708d08e6c5785e.zip
s3: let tdb_validate_child() use tdb_check()
metze
-rw-r--r--source3/lib/tdb_validate.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/lib/tdb_validate.c b/source3/lib/tdb_validate.c
index 092546e3eb..a1fb1850db 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;