Skip to content

Commit eb25825

Browse files
committed
drop conditon
1 parent 53a74f7 commit eb25825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/ldap/ldap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,10 +988,10 @@ PHP_FUNCTION(ldap_connect)
988988
}
989989

990990
#ifdef LDAP_OPT_X_TLS_NEWCTX
991-
if (!memcmp(url, "ldaps:", 6)) {
991+
{
992992
int val = 0;
993993

994-
/* ensure all pending TLS options are applied in a new context */
994+
/* ensure all pending TLS options are applied in a new context (for ldaps or later starttls) */
995995
if (ldap_set_option(NULL, LDAP_OPT_X_TLS_NEWCTX, &val) != LDAP_OPT_SUCCESS) {
996996
php_error_docref(NULL, E_WARNING, "Could not create new security context");
997997
}

0 commit comments

Comments
 (0)