svn commit: samba r24166 - in branches: SAMBA_3_0_25/source/libads SAMBA_3_2/source/libads SAMBA_3_2_0/source/libads

vlendec at samba.org vlendec at samba.org
Sat Aug 4 10:25:29 GMT 2007


Author: vlendec
Date: 2007-08-04 10:25:27 +0000 (Sat, 04 Aug 2007)
New Revision: 24166

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

Log:
Fix Coverity ID 391
Modified:
   branches/SAMBA_3_0_25/source/libads/ldap.c
   branches/SAMBA_3_2/source/libads/ldap.c
   branches/SAMBA_3_2_0/source/libads/ldap.c


Changeset:
Modified: branches/SAMBA_3_0_25/source/libads/ldap.c
===================================================================
--- branches/SAMBA_3_0_25/source/libads/ldap.c	2007-08-04 10:18:33 UTC (rev 24165)
+++ branches/SAMBA_3_0_25/source/libads/ldap.c	2007-08-04 10:25:27 UTC (rev 24166)
@@ -2618,7 +2618,7 @@
 	if (*site_dn == NULL) {
 		ads_msgfree(ads, res);
 		ads_memfree(ads, dn);
-		ADS_ERROR(LDAP_NO_MEMORY);
+		return ADS_ERROR(LDAP_NO_MEMORY);
 	}
 
 	ads_memfree(ads, dn);

Modified: branches/SAMBA_3_2/source/libads/ldap.c
===================================================================
--- branches/SAMBA_3_2/source/libads/ldap.c	2007-08-04 10:18:33 UTC (rev 24165)
+++ branches/SAMBA_3_2/source/libads/ldap.c	2007-08-04 10:25:27 UTC (rev 24166)
@@ -2723,7 +2723,7 @@
 	if (*site_dn == NULL) {
 		ads_msgfree(ads, res);
 		ads_memfree(ads, dn);
-		ADS_ERROR(LDAP_NO_MEMORY);
+		return ADS_ERROR(LDAP_NO_MEMORY);
 	}
 
 	ads_memfree(ads, dn);

Modified: branches/SAMBA_3_2_0/source/libads/ldap.c
===================================================================
--- branches/SAMBA_3_2_0/source/libads/ldap.c	2007-08-04 10:18:33 UTC (rev 24165)
+++ branches/SAMBA_3_2_0/source/libads/ldap.c	2007-08-04 10:25:27 UTC (rev 24166)
@@ -2723,7 +2723,7 @@
 	if (*site_dn == NULL) {
 		ads_msgfree(ads, res);
 		ads_memfree(ads, dn);
-		ADS_ERROR(LDAP_NO_MEMORY);
+		return ADS_ERROR(LDAP_NO_MEMORY);
 	}
 
 	ads_memfree(ads, dn);



More information about the samba-cvs mailing list