svn commit: samba r23263 - in branches: SAMBA_3_0/source/nsswitch SAMBA_3_0_26/source/nsswitch

vlendec at samba.org vlendec at samba.org
Thu May 31 09:23:52 GMT 2007


Author: vlendec
Date: 2007-05-31 09:23:51 +0000 (Thu, 31 May 2007)
New Revision: 23263

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

Log:
Remove an unused variable -- Fix Coverity ID 358

Modified:
   branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c
   branches/SAMBA_3_0_26/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-05-31 05:37:52 UTC (rev 23262)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c	2007-05-31 09:23:51 UTC (rev 23263)
@@ -898,7 +898,6 @@
 				uint32 **name_types)
 {
 	ADS_STATUS rc;
-	LDAPMessage *res=NULL;
 	ADS_STRUCT *ads = NULL;
 	char *ldap_exp;
 	NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
@@ -1081,9 +1080,6 @@
 
 done:
 
-	if (res) 
-		ads_msgfree(ads, res);
-
 	/* free intermediate lists. - a temp talloc ctx might be better. */
 	TALLOC_FREE(sid_mem_nocache);
 	TALLOC_FREE(names_nocache);

Modified: branches/SAMBA_3_0_26/source/nsswitch/winbindd_ads.c
===================================================================
--- branches/SAMBA_3_0_26/source/nsswitch/winbindd_ads.c	2007-05-31 05:37:52 UTC (rev 23262)
+++ branches/SAMBA_3_0_26/source/nsswitch/winbindd_ads.c	2007-05-31 09:23:51 UTC (rev 23263)
@@ -898,7 +898,6 @@
 				uint32 **name_types)
 {
 	ADS_STATUS rc;
-	LDAPMessage *res=NULL;
 	ADS_STRUCT *ads = NULL;
 	char *ldap_exp;
 	NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
@@ -1081,9 +1080,6 @@
 
 done:
 
-	if (res) 
-		ads_msgfree(ads, res);
-
 	/* free intermediate lists. - a temp talloc ctx might be better. */
 	TALLOC_FREE(sid_mem_nocache);
 	TALLOC_FREE(names_nocache);



More information about the samba-cvs mailing list