diff options
Diffstat (limited to 'source4/scripting/ejs/smbcalls_auth.c')
-rw-r--r-- | source4/scripting/ejs/smbcalls_auth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/scripting/ejs/smbcalls_auth.c b/source4/scripting/ejs/smbcalls_auth.c index 4c943e6fb3..9b71314d3f 100644 --- a/source4/scripting/ejs/smbcalls_auth.c +++ b/source4/scripting/ejs/smbcalls_auth.c @@ -82,8 +82,7 @@ static int ejs_doauth(MprVarHandle eid, if (!NT_STATUS_IS_OK(nt_status)) { mprSetPropertyValue(auth, "report", - mprString(talloc_asprintf(mprMemCtx(), "Login Failed: %s", - get_friendly_nt_error_msg(nt_status)))); + mprString(talloc_strdup(mprMemCtx(), get_friendly_nt_error_msg(nt_status)))); mprSetPropertyValue(auth, "result", mprCreateBoolVar(False)); goto done; } |