diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-03-07 16:06:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:11:01 -0500 |
commit | c2288e6db34207948413411764175990f563168e (patch) | |
tree | 537e38e79fe4a2d067c3094b17508a5dae1c2c65 /source3 | |
parent | dbb4840da528ed6931ffa1c70885b3645dff25a3 (diff) | |
download | samba-c2288e6db34207948413411764175990f563168e.tar.gz samba-c2288e6db34207948413411764175990f563168e.tar.bz2 samba-c2288e6db34207948413411764175990f563168e.zip |
r13951: Fix Coverity Bug #163.
This code was not used anyway :-)
Volker
(This used to be commit bbfb20569380529d60e3c61cd0be63a09eecfd17)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/ldap.c | 28 |
1 files changed, 0 insertions, 28 deletions
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 |