1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

mapping_tdb: fix enumeration of mappings.

db->traverse_read returns the number of traversed object on success.

Michael
(This used to be commit 2be2188a97)
This commit is contained in:
Michael Adam
2008-04-04 16:56:02 +02:00
parent eab99a9eee
commit 2478949821

View File

@ -364,7 +364,7 @@ static bool enum_group_mapping(const DOM_SID *domsid,
state.num_maps = 0;
state.maps = NULL;
if (db->traverse_read(db, collect_map, (void *)&state) != 0) {
if (db->traverse_read(db, collect_map, (void *)&state) < 0) {
return false;
}