From c851532bece629e114382e2c3571a18bf9b42be4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 8 Jul 2005 07:26:45 +0000 Subject: r8230: prevent authentication dying on a NULL domain (This used to be commit e1cfc6d03244e04d59a96ef2abb5b48fcb157b0a) --- source4/scripting/ejs/smbcalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/scripting/ejs') diff --git a/source4/scripting/ejs/smbcalls.c b/source4/scripting/ejs/smbcalls.c index 0f43da349d..ab5101db6d 100644 --- a/source4/scripting/ejs/smbcalls.c +++ b/source4/scripting/ejs/smbcalls.c @@ -149,7 +149,7 @@ static int ejs_userAuth(MprVarHandle eid, int argc, struct MprVar **argv) tmp_ctx = talloc_new(mprMemCtx()); auth = mprCreateObjVar("auth", MPR_DEFAULT_HASH_SIZE); - if (strcmp("System User", domain) == 0) { + if (domain && strcmp("System User", domain) == 0) { ejs_systemAuth(tmp_ctx, &auth, username, password, domain, remote_host); } else { -- cgit