From c2288e6db34207948413411764175990f563168e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 7 Mar 2006 16:06:26 +0000 Subject: r13951: Fix Coverity Bug #163. This code was not used anyway :-) Volker (This used to be commit bbfb20569380529d60e3c61cd0be63a09eecfd17) --- source3/libads/ldap.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'source3') diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index cb7dbc575b..26b86f64d1 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -823,34 +823,6 @@ char *ads_get_dn_canonical(ADS_STRUCT *ads, void *msg) #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 -- cgit