diff options
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r-- | ext/soap/php_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index cb5550adb4..0659bd710e 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -242,7 +242,7 @@ static php_stream* http_connect(zval* this_ptr, php_url *phpurl, int use_ssl, ph smart_str soap_headers = {0}; /* Set peer_name or name verification will try to use the proxy server name */ - if (context && (tmp = php_stream_context_get_option(context, "ssl", "peer_name")) != NULL) { + if (!context || (tmp = php_stream_context_get_option(context, "ssl", "peer_name")) == NULL) { ZVAL_STRING(&ssl_proxy_peer_name, phpurl->host); php_stream_context_set_option(PHP_STREAM_CONTEXT(stream), "ssl", "peer_name", &ssl_proxy_peer_name); zval_ptr_dtor(&ssl_proxy_peer_name); |