From 2bb3a50c7ea48730a3305d86f2e1e92ce206bdd3 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 14 Jan 2006 07:46:04 +0000 Subject: r12931: Remove some prefixes. We have: Login failed: Login Failed: Logon failure - please try again In SWAT currently... Andrew Bartlett (This used to be commit 51eded818093320e7d6b9e95ad11fa21a81c3f93) --- source4/scripting/ejs/smbcalls_auth.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/scripting') 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; } -- cgit