From 2be2188a97060f04c2dea3ca9ed0fd3db0b3df7c Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 4 Apr 2008 16:56:02 +0200 Subject: [PATCH] mapping_tdb: fix enumeration of mappings. db->traverse_read returns the number of traversed object on success. Michael --- source/groupdb/mapping_tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }