svn commit: samba r13774 - in trunk/source/passdb: .

vlendec at samba.org vlendec at samba.org
Wed Mar 1 20:21:33 GMT 2006


Author: vlendec
Date: 2006-03-01 20:21:32 +0000 (Wed, 01 Mar 2006)
New Revision: 13774

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

Log:
Avoid a segfault if the primary group did not change
Modified:
   trunk/source/passdb/pdb_ldap.c


Changeset:
Modified: trunk/source/passdb/pdb_ldap.c
===================================================================
--- trunk/source/passdb/pdb_ldap.c	2006-03-01 20:06:34 UTC (rev 13773)
+++ trunk/source/passdb/pdb_ldap.c	2006-03-01 20:21:32 UTC (rev 13774)
@@ -5279,6 +5279,10 @@
 	/* remove the old one, and add the new one, this way we do not risk races */
 	smbldap_make_mod(priv2ld(ldap_state), entry, &mods, "gidNumber", gidstr);
 
+	if (mods == NULL) {
+		return NT_STATUS_OK;
+	}
+
 	rc = smbldap_modify(ldap_state->smbldap_state, dn, mods);
 
 	if (rc != LDAP_SUCCESS) {



More information about the samba-cvs mailing list