summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/scripting/ejs/smbcalls_ldb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/scripting/ejs/smbcalls_ldb.c b/source4/scripting/ejs/smbcalls_ldb.c
index 78063ed6b4..f1d59ec2af 100644
--- a/source4/scripting/ejs/smbcalls_ldb.c
+++ b/source4/scripting/ejs/smbcalls_ldb.c
@@ -338,8 +338,7 @@ static int ejs_dn_escape(MprVarHandle eid, int argc, struct MprVar **argv)
return -1;
}
- val.data = mprToString(argv[0]);
- val.length = strlen((const char *)val.data);
+ val = data_blob_string_const(mprToString(argv[0]));
ret = ldb_dn_escape_value(mprMemCtx(), val);
if (ret == NULL) {