summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/modules/operational.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/modules/operational.c b/source4/lib/ldb/modules/operational.c
index 4193f916a0..11c06c81bb 100644
--- a/source4/lib/ldb/modules/operational.c
+++ b/source4/lib/ldb/modules/operational.c
@@ -273,7 +273,7 @@ static int operational_search(struct ldb_module *module, struct ldb_request *req
req->op.search.scope,
req->op.search.tree,
/* use new set of attrs if any */
- search_attrs?req->op.search.attrs:search_attrs,
+ search_attrs == NULL?req->op.search.attrs:search_attrs,
req->controls,
ac, operational_callback,
req);