From: Pierangelo Masarati Date: Thu, 3 Nov 2005 20:11:22 +0000 (+0000) Subject: fix previous commit X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~115 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f571f4b2b46cd3a2f5fa49d66e8b6fc04455e498;p=openldap fix previous commit --- diff --git a/libraries/libldap/init.c b/libraries/libldap/init.c index cb0fc14e9a..32d54e2977 100644 --- a/libraries/libldap/init.c +++ b/libraries/libldap/init.c @@ -410,10 +410,13 @@ ldap_int_destroy_global_options(void) WSACleanup( ); #endif +#if defined(LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND) \ + || defined(HAVE_TLS) || defined(HAVE_CYRUS_SASL) if ( ldap_int_hostname ) { LDAP_FREE( ldap_int_hostname ); ldap_int_hostname = NULL; } +#endif } /*