We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2966b09 commit 665e79cCopy full SHA for 665e79c
ext/ldap/ldap.c
@@ -993,7 +993,9 @@ PHP_FUNCTION(ldap_connect)
993
994
/* ensure all pending TLS options are applied in a new context */
995
if (ldap_set_option(NULL, LDAP_OPT_X_TLS_NEWCTX, &val) != LDAP_OPT_SUCCESS) {
996
+ zval_ptr_dtor(return_value);
997
php_error_docref(NULL, E_WARNING, "Could not create new security context");
998
+ RETURN_FALSE;
999
}
1000
1001
#endif
0 commit comments