summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/samr/samdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/samr/samdb.c b/source4/rpc_server/samr/samdb.c
index d23118f1f0..0d4443958a 100644
--- a/source4/rpc_server/samr/samdb.c
+++ b/source4/rpc_server/samr/samdb.c
@@ -602,7 +602,7 @@ int samdb_copy_template(void *ctx, TALLOC_CTX *mem_ctx,
/* pull the template record */
- ret = samdb_search(ctx, mem_ctx, NULL, &res, NULL, expression);
+ ret = samdb_search(ctx, mem_ctx, NULL, &res, NULL, "%s", expression);
if (ret != 1) {
DEBUG(1,("samdb: ERROR: template '%s' matched %d records\n",
expression, ret));