From: Pierangelo Masarati Date: Fri, 12 Aug 2005 10:51:39 +0000 (+0000) Subject: should compile also when #undef HAVE_TLS X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~722 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7b9173d0bba4fde4e52ccd2f6071099d2d3f1b28;p=openldap should compile also when #undef HAVE_TLS --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index ad52b49715..93e9c450c4 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -529,6 +529,7 @@ ldap_back_getconn( Operation *op, SlapReply *rs, ldap_back_send_t sendok ) } } +#ifdef HAVE_TLS /* if start TLS failed but it was not mandatory, * check if the non-TLS connection was already * in cache; in case, destroy the newly created @@ -553,6 +554,7 @@ ldap_back_getconn( Operation *op, SlapReply *rs, ldap_back_send_t sendok ) goto done; } } +#endif /* HAVE_TLS */ lc->lc_bound = 0;