mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r23932: Fill extended status with information in case the validation traverse
functions did not do so but returned an error. (This is the case when error occurred deeper than at the level of the content checking done by the per entry validate_fn.) Michael
This commit is contained in:
parent
2c2a1ff2c2
commit
e56be59947
@ -1021,7 +1021,11 @@ static int tdb_validate_child(const char *tdb_path,
|
||||
|
||||
/* Now traverse the tdb to validate it. */
|
||||
num_entries = tdb_traverse(tdb, validate_fn, (void *)&v_status);
|
||||
if (num_entries == -1 || !(v_status.success)) {
|
||||
if (!v_status.success) {
|
||||
goto out;
|
||||
} else if (num_entries == -1) {
|
||||
v_status.tdb_error = True;
|
||||
v_status.success = False;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user