svn commit: samba r8230 - in branches/SAMBA_4_0/source/scripting/ejs: .

tridge at samba.org tridge at samba.org
Fri Jul 8 07:26:45 GMT 2005


Author: tridge
Date: 2005-07-08 07:26:45 +0000 (Fri, 08 Jul 2005)
New Revision: 8230

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8230

Log:
prevent authentication dying on a NULL domain

Modified:
   branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c
===================================================================
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c	2005-07-08 06:29:06 UTC (rev 8229)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c	2005-07-08 07:26:45 UTC (rev 8230)
@@ -149,7 +149,7 @@
  	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 {



More information about the samba-cvs mailing list