summaryrefslogtreecommitdiff
path: root/source3/lib/ldb/modules/operational.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/ldb/modules/operational.c')
-rw-r--r--source3/lib/ldb/modules/operational.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/ldb/modules/operational.c b/source3/lib/ldb/modules/operational.c
index c327a96f90..555ae5e9f6 100644
--- a/source3/lib/ldb/modules/operational.c
+++ b/source3/lib/ldb/modules/operational.c
@@ -244,7 +244,7 @@ static int operational_search(struct ldb_module *module, struct ldb_request *req
searchable, but are stored using a different name in the
backend */
for (i=0;i<ARRAY_SIZE(parse_tree_sub);i++) {
- ldb_parse_tree_attr_replace(req->op.search.tree,
+ ldb_parse_tree_attr_replace(CONST_DISCARD(struct ldb_parse_tree *,req->op.search.tree),
parse_tree_sub[i].attr,
parse_tree_sub[i].replace);
}