1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

mapping_tdb: fix enumeration of mappings.

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

Michael
This commit is contained in:
Michael Adam 2008-04-04 16:56:02 +02:00
parent 7b16cb1023
commit 2be2188a97

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;
}