diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-08 07:26:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:19:22 -0500 |
commit | c851532bece629e114382e2c3571a18bf9b42be4 (patch) | |
tree | 0d9bcd9c2d2bf3ae9424a15eddf9cbcbe8301a2d /source4/scripting/ejs | |
parent | 8e05fc188e0f8cbea422eac503f8447104a78a7c (diff) | |
download | samba-c851532bece629e114382e2c3571a18bf9b42be4.tar.gz samba-c851532bece629e114382e2c3571a18bf9b42be4.tar.bz2 samba-c851532bece629e114382e2c3571a18bf9b42be4.zip |
r8230: prevent authentication dying on a NULL domain
(This used to be commit e1cfc6d03244e04d59a96ef2abb5b48fcb157b0a)
Diffstat (limited to 'source4/scripting/ejs')
-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 { |