summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
authorKeith Smiley <ksmiley@salesforce.com>2016-10-13 23:56:24 -0400
committerKeith Smiley <ksmiley@salesforce.com>2016-10-13 23:56:24 -0400
commit3b9ba6195db2c17147b0fed4af3398320967002f (patch)
tree36b959ce5d9c7e00360bb98e3eb818246160bd8b /ext/soap/php_http.c
parent31cbce341c4a5017eac3239c8ff1278cb9ff3900 (diff)
downloadphp-git-3b9ba6195db2c17147b0fed4af3398320967002f.tar.gz
soap #69137 - Invert logic to be correct
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r--ext/soap/php_http.c2
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);