summaryrefslogtreecommitdiff
path: root/source3/libads/ads_struct.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-05 10:35:25 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-05 10:35:25 +0000
commit6194d6a54161931008244766a380e909bb5a8e63 (patch)
treed3518519973d762235c66842f2656f449f120468 /source3/libads/ads_struct.c
parent8aa0a817c1c34b840eb68344a062cdbd95a06a68 (diff)
downloadsamba-6194d6a54161931008244766a380e909bb5a8e63.tar.gz
samba-6194d6a54161931008244766a380e909bb5a8e63.tar.bz2
samba-6194d6a54161931008244766a380e909bb5a8e63.zip
fix link error
(This used to be commit 58e93a8b7de10f60a1e68570f1bdd6e3d8fa44a5)
Diffstat (limited to 'source3/libads/ads_struct.c')
-rw-r--r--source3/libads/ads_struct.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libads/ads_struct.c b/source3/libads/ads_struct.c
index 83c8f5b404..15cbb328e8 100644
--- a/source3/libads/ads_struct.c
+++ b/source3/libads/ads_struct.c
@@ -178,7 +178,9 @@ ADS_STRUCT *ads_init(const char *realm,
void ads_destroy(ADS_STRUCT **ads)
{
if (ads && *ads) {
+#if HAVE_LDAP
if ((*ads)->ld) ldap_unbind((*ads)->ld);
+#endif
SAFE_FREE((*ads)->realm);
SAFE_FREE((*ads)->ldap_server);
SAFE_FREE((*ads)->kdc_server);