summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb_match.c2
-rw-r--r--source4/lib/ldb/common/ldb_parse.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/ldb/common/ldb_match.c b/source4/lib/ldb/common/ldb_match.c
index b32a933df3..f437f31eac 100644
--- a/source4/lib/ldb/common/ldb_match.c
+++ b/source4/lib/ldb/common/ldb_match.c
@@ -369,7 +369,7 @@ static int ldb_match_message(struct ldb_context *ldb,
return ldb_match_extended(ldb, msg, tree, base, scope);
case LDB_OP_NOT:
- return ! ldb_match_message(ldb, msg, tree->u.not.child, base, scope);
+ return ! ldb_match_message(ldb, msg, tree->u.isnot.child, base, scope);
case LDB_OP_AND:
for (i=0;i<tree->u.list.num_elements;i++) {
diff --git a/source4/lib/ldb/common/ldb_parse.c b/source4/lib/ldb/common/ldb_parse.c
index ad3cbd883d..933ff18f2b 100644
--- a/source4/lib/ldb/common/ldb_parse.c
+++ b/source4/lib/ldb/common/ldb_parse.c
@@ -459,8 +459,8 @@ static struct ldb_parse_tree *ldb_parse_not(void *mem_ctx, const char *s)
}
ret->operation = LDB_OP_NOT;
- ret->u.not.child = ldb_parse_filter(ret, &s);
- if (!ret->u.not.child) {
+ ret->u.isnot.child = ldb_parse_filter(ret, &s);
+ if (!ret->u.isnot.child) {
talloc_free(ret);
return NULL;
}
@@ -629,7 +629,7 @@ char *ldb_filter_from_tree(void *mem_ctx, struct ldb_parse_tree *tree)
}
return s;
case LDB_OP_NOT:
- s = ldb_filter_from_tree(mem_ctx, tree->u.not.child);
+ s = ldb_filter_from_tree(mem_ctx, tree->u.isnot.child);
if (s == NULL) return NULL;
ret = talloc_asprintf(mem_ctx, "(!%s)", s);