mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s3: let tdb_validate_child() use tdb_check()
metze
This commit is contained in:
parent
886fe5b920
commit
6f6608c2aa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user