summaryrefslogtreecommitdiff
path: root/source3/groupdb
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-04 16:56:02 +0200
committerMichael Adam <obnox@samba.org>2008-04-04 17:05:00 +0200
commit24789498214a5af60f5280861eda34337b404468 (patch)
tree865766c8cd99efdaa8d00cfea3348e93b36d1808 /source3/groupdb
parenteab99a9eee56dc7484088cbc1c1b16edf4f4271c (diff)
downloadsamba-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)
Diffstat (limited to 'source3/groupdb')
-rw-r--r--source3/groupdb/mapping_tdb.c2
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;
}