r4397: Fix a bug where '(&(objectclass=domain)(!(objectclass=builtindomain)))' fell
authorVolker Lendecke <vlendec@samba.org>
Wed, 29 Dec 2004 22:25:46 +0000 (22:25 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:42 +0000 (13:07 -0500)
back to a full search.

Volker
(This used to be commit 55c9fbd4f4afdde30a0d92bfd31f5c9ebb98c59b)

source4/lib/ldb/ldb_tdb/ldb_index.c

index 8d31a3a81f9b7ad3b91289e45b2f5e14b5194c82..01fa4be44bcdda305b349e17f150632f32e4a115 100644 (file)
@@ -526,6 +526,7 @@ static int ldb_index_filter(struct ldb_module *module, struct ldb_parse_tree *tr
                        return -1;
                }
 
                        return -1;
                }
 
+               ret = 0;
                if (ltdb_message_match(module, &msg, tree, base, scope) == 1) {
                        ret = ltdb_add_attr_results(module, &msg, attrs, &count, res);
                }
                if (ltdb_message_match(module, &msg, tree, base, scope) == 1) {
                        ret = ltdb_add_attr_results(module, &msg, attrs, &count, res);
                }