lib: Fix tdb_validate() for incorrect tdb entries
authorVolker Lendecke <vl@samba.org>
Wed, 29 Mar 2023 10:20:01 +0000 (06:20 -0400)
committerRalph Boehme <slow@samba.org>
Sat, 1 Apr 2023 05:25:28 +0000 (05:25 +0000)
commitbea154c9c13e2849eadcaccc1d5acccf9a3b8931
treeebbe320d5db7862de757a41d7dcada3d246e763b
parent12c8b67ef6355f9527b53f274cc7a1acc1648dcb
lib: Fix tdb_validate() for incorrect tdb entries

We should not overwrite the "rc=1" initialization with the tdb_check
retval. This will lead to tdb_validate_child() returning 0 even when
validate_fn() found invalid entries.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=14789
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail.d/tdb-validate [deleted file]
source3/lib/tdb_validate.c