diff options
-rw-r--r-- | source4/scripting/ejs/smbcalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |