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

tridge at samba.org tridge at samba.org
Wed Jul 20 05:41:30 GMT 2005


Author: tridge
Date: 2005-07-20 05:41:29 +0000 (Wed, 20 Jul 2005)
New Revision: 8633

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

Log:
check for valid input to ejs_userAuth() 



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


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_auth.c
===================================================================
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_auth.c	2005-07-20 05:40:51 UTC (rev 8632)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_auth.c	2005-07-20 05:41:29 UTC (rev 8633)
@@ -102,6 +102,11 @@
 	domain = mprToString(mprGetProperty(argv[0], "domain", NULL));
 	remote_host = mprToString(mprGetProperty(argv[0], "rhost", NULL));
 
+	if (username == NULL || password == NULL || domain == NULL) {
+		mpr_Return(eid, mprCreateUndefinedVar());
+		return 0;
+	}
+
  	tmp_ctx = talloc_new(mprMemCtx());	
 	auth = mprObject("auth");
 



More information about the samba-cvs mailing list