com php-src: fix ZTS: ext/openssl/xp_ssl.c
| From: | Anatol Belski | Date: | Mon, 10 Mar 2014 11:24:32 +0000 |
| Subject: | com php-src: fix ZTS: ext/openssl/xp_ssl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-76414@lists.php.net to get a copy of this message | ||
Commit: dd7ecf2c5b4ca734d5146f7179bf261eb1cdb874
Author: Anatol Belski <ab@php.net> Mon, 10 Mar 2014 12:24:32 +0100
Parents: 6d6da2f189a222af0d27d8c3b8c4d66d7371a80d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=dd7ecf2c5b4ca734d5146f7179bf261eb1cdb874
Log:
fix ZTS
Changed paths:
M ext/openssl/xp_ssl.c
Diff:
diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c
index eb9258b..9269864 100644
--- a/ext/openssl/xp_ssl.c
+++ b/ext/openssl/xp_ssl.c
@@ -626,7 +626,7 @@ static int win_cert_verify_callback(X509_STORE_CTX *x509_store_ctx, void *arg) /
if (chain_policy_status.dwError != 0) {
/* The chain does not match the policy */
if (is_self_signed && chain_policy_status.dwError == CERT_E_UNTRUSTEDROOT
- && GET_VER_OPT("allow_self_signed") && zend_is_true(*val)) {
+ && GET_VER_OPT("allow_self_signed") && zend_is_true(*val TSRMLS_CC))
{
/* allow self-signed certs */
X509_STORE_CTX_set_error(x509_store_ctx, X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT);
} else {