]> granicus.if.org Git - php/commitdiff
fix wrong pointer indirection
authorAnatol Belski <ab@php.net>
Tue, 19 Aug 2014 05:44:03 +0000 (07:44 +0200)
committerAnatol Belski <ab@php.net>
Tue, 19 Aug 2014 05:44:03 +0000 (07:44 +0200)
ext/openssl/xp_ssl.c

index f706e0d5a21d87523a1a76e619f7e541e7f3e9b2..a2022dfb7920dbd98c8202f91a31817bcd81eaad 100644 (file)
@@ -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 {