]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r23932: Fill extended status with information in case the validation traverse
authorMichael Adam <obnox@samba.org>
Tue, 17 Jul 2007 13:06:29 +0000 (13:06 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:28:46 +0000 (12:28 -0500)
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 used to be commit e56be59947a29d0a5692f3f3bc6c089dd8b4b5d9)

source3/lib/util_tdb.c

index 7bba22f4bc9ee98e52112fe752da5b40a26d8fea..2fa915131bf9034626c656719d8e5b683502ca8c 100644 (file)
@@ -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;
        }