diff options
author | Michael Adam <obnox@samba.org> | 2008-04-04 16:56:02 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-04 17:05:00 +0200 |
commit | 24789498214a5af60f5280861eda34337b404468 (patch) | |
tree | 865766c8cd99efdaa8d00cfea3348e93b36d1808 | |
parent | eab99a9eee56dc7484088cbc1c1b16edf4f4271c (diff) | |
download | samba-24789498214a5af60f5280861eda34337b404468.tar.gz samba-24789498214a5af60f5280861eda34337b404468.tar.bz2 samba-24789498214a5af60f5280861eda34337b404468.zip |
mapping_tdb: fix enumeration of mappings.
db->traverse_read returns the number of traversed object on success.
Michael
(This used to be commit 2be2188a97060f04c2dea3ca9ed0fd3db0b3df7c)
-rw-r--r-- | source3/groupdb/mapping_tdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c index 3318f31c4f..ffd7d20ab8 100644 --- a/source3/groupdb/mapping_tdb.c +++ b/source3/groupdb/mapping_tdb.c @@ -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; } |