From 6194d6a54161931008244766a380e909bb5a8e63 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 5 Dec 2001 10:35:25 +0000 Subject: fix link error (This used to be commit 58e93a8b7de10f60a1e68570f1bdd6e3d8fa44a5) --- source3/libads/ads_struct.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') 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); -- cgit