svn commit: samba r13951 - branches/SAMBA_3_0/source/libads trunk/source/libads

vlendec at samba.org vlendec at samba.org
Tue Mar 7 16:06:27 GMT 2006


Author: vlendec
Date: 2006-03-07 16:06:26 +0000 (Tue, 07 Mar 2006)
New Revision: 13951

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

Log:
Fix Coverity Bug #163.

This code was not used anyway :-)

Volker


Modified:
   branches/SAMBA_3_0/source/libads/ldap.c
   trunk/source/libads/ldap.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/ldap.c
===================================================================
--- branches/SAMBA_3_0/source/libads/ldap.c	2006-03-07 16:01:57 UTC (rev 13950)
+++ branches/SAMBA_3_0/source/libads/ldap.c	2006-03-07 16:06:26 UTC (rev 13951)
@@ -823,35 +823,7 @@
 #endif
 }
 
-
 /**
- * Get the parent dn from a search result
- * @param ads connection to ads server
- * @param msg Search result
- * @return parent dn string
- **/
-char *ads_get_parent_dn(ADS_STRUCT *ads, void *msg)
-{
-	char *mydn, *p, *dn;
-
-	dn = ads_get_dn(ads, msg);
-	if (dn == NULL) {
-		return NULL;
-	}
-
-	mydn = dn;
-	ads_memfree(ads, dn);
-	
-	p = strchr(mydn, ',');
-
-	if (p == NULL) {
-		return NULL;
-	}
-
-	return p+1;
-}
-
-/**
  * Get the parent from a dn
  * @param dn the dn to return the parent from
  * @return parent dn string

Modified: trunk/source/libads/ldap.c
===================================================================
--- trunk/source/libads/ldap.c	2006-03-07 16:01:57 UTC (rev 13950)
+++ trunk/source/libads/ldap.c	2006-03-07 16:06:26 UTC (rev 13951)
@@ -823,35 +823,7 @@
 #endif
 }
 
-
 /**
- * Get the parent dn from a search result
- * @param ads connection to ads server
- * @param msg Search result
- * @return parent dn string
- **/
-char *ads_get_parent_dn(ADS_STRUCT *ads, void *msg)
-{
-	char *mydn, *p, *dn;
-
-	dn = ads_get_dn(ads, msg);
-	if (dn == NULL) {
-		return NULL;
-	}
-
-	mydn = dn;
-	ads_memfree(ads, dn);
-	
-	p = strchr(mydn, ',');
-
-	if (p == NULL) {
-		return NULL;
-	}
-
-	return p+1;
-}
-
-/**
  * Get the parent from a dn
  * @param dn the dn to return the parent from
  * @return parent dn string



More information about the samba-cvs mailing list