Skip to content
Snippets Groups Projects
Commit 248e73c7 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

TLS availability should check slapd's context not the default context.

parent 56155b25
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment