com php-src: fix wrong pointer indirection: ext/openssl/xp_ss l.c
| From: | Anatol Belski | Date: | Tue, 19 Aug 2014 05:44:03 +0000 |
| Subject: | com php-src: fix wrong pointer indirection: ext/openssl/xp_ss l.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-80591@lists.php.net to get a copy of this message | ||
Commit: 56c7b27d6be7e4fb03f07e3ecb949d7f9c3ff857
Author: Anatol Belski <ab@php.net> Tue, 19 Aug 2014 07:44:03 +0200
Parents: dd16f4f71660f84168b9294bb7ae601ef8db275b
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=56c7b27d6be7e4fb03f07e3ecb949d7f9c3ff857
Log:
fix wrong pointer indirection
Changed paths:
M ext/openssl/xp_ssl.c
Diff:
diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c
index f706e0d..a2022df 100644
--- a/ext/openssl/xp_ssl.c
+++ b/ext/openssl/xp_ssl.c
@@ -531,7 +531,7 @@ static int win_cert_verify_callback(X509_STORE_CTX *x509_store_ctx, void *arg) /
php_stream *stream;
php_openssl_netstream_data_t *sslsock;
- zval **val;
+ zval *val;
zend_bool is_self_signed = 0;
TSRMLS_FETCH();
@@ -673,7 +673,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 TSRMLS_CC))
{
+ && 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 {