summaryrefslogtreecommitdiffstats
path: root/source
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
commit2be2188a97060f04c2dea3ca9ed0fd3db0b3df7c (patch)
tree371deacb6f4623db890964d70ca2914b703173fd /source
parent7b16cb1023abd4fb2b2f08cf723d38c8c6ae68a0 (diff)
downloadsamba-2be2188a97060f04c2dea3ca9ed0fd3db0b3df7c.tar.gz
samba-2be2188a97060f04c2dea3ca9ed0fd3db0b3df7c.tar.xz
samba-2be2188a97060f04c2dea3ca9ed0fd3db0b3df7c.zip
mapping_tdb: fix enumeration of mappings.
db->traverse_read returns the number of traversed object on success. Michael
Diffstat (limited to 'source')
-rw-r--r--source/groupdb/mapping_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/groupdb/mapping_tdb.c b/source/groupdb/mapping_tdb.c
index 3318f31c4ff..ffd7d20ab8d 100644
--- a/source/groupdb/mapping_tdb.c
+++ b/source/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;
}