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:
parent
7b16cb1023
commit
2be2188a97
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user