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;