]> git.sur5r.net Git - openldap/commitdiff
should compile also when #undef HAVE_TLS
authorPierangelo Masarati <ando@openldap.org>
Fri, 12 Aug 2005 10:51:39 +0000 (10:51 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 12 Aug 2005 10:51:39 +0000 (10:51 +0000)
servers/slapd/back-ldap/bind.c

index ad52b497153ec5ebb9eb4f95df627bedf1fe6603..93e9c450c4a8da5123638411ff5ea197c241aa17 100644 (file)
@@ -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;