svn commit: samba r22511 - in branches/SAMBA_3_0/source/nsswitch: .

gd at samba.org gd at samba.org
Wed Apr 25 10:01:21 GMT 2007


Author: gd
Date: 2007-04-25 10:01:21 +0000 (Wed, 25 Apr 2007)
New Revision: 22511

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

Log:
Remove unused LDAPMessage.

Guenther

Modified:
   branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c


Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c	2007-04-25 09:36:47 UTC (rev 22510)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c	2007-04-25 10:01:21 UTC (rev 22511)
@@ -609,7 +609,6 @@
 {
 	ADS_STATUS rc;
 	NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
-	LDAPMessage *res = NULL;
 	ADS_STRUCT *ads;
 	const char *attrs[] = {"memberOf", NULL};
 	size_t num_groups = 0;
@@ -693,8 +692,6 @@
 	DEBUG(3,("ads lookup_usergroups (memberof) succeeded for dn=%s\n", user_dn));
 done:
 	TALLOC_FREE(group_sids);
-	if (res) 
-		ads_msgfree(ads, res);
 
 	return status;
 }



More information about the samba-cvs mailing list