From: Kurt Zeilenga Date: Wed, 2 Jun 2004 17:38:04 +0000 (+0000) Subject: TLS availability should check slapd's context not the default context. X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~303 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=248e73c7e100d9245e9321a755592fd6a233b13b;p=openldap TLS availability should check slapd's context not the default context. --- diff --git a/servers/slapd/starttls.c b/servers/slapd/starttls.c index ff164a4c61..11f2c0c917 100644 --- a/servers/slapd/starttls.c +++ b/servers/slapd/starttls.c @@ -77,9 +77,7 @@ starttls_extop ( Operation *op, SlapReply *rs ) } /* fail if TLS could not be initialized */ - if (ldap_pvt_tls_get_option( NULL, LDAP_OPT_X_TLS_CTX, &ctx ) != 0 - || ctx == NULL) - { + if ( slap_tls_ctx == NULL ) { if (default_referral != NULL) { /* caller will put the referral in the result */ rc = LDAP_REFERRAL;