mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-22 06:43:17 -05:00
TLS availability should check slapd's context not the default context.
This commit is contained in:
parent
56155b25f1
commit
248e73c7e1
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue