From: Daniel Lowrey Date: Wed, 5 Feb 2014 02:11:56 +0000 (-0700) Subject: Fixed SNI failure from missing Z_STRVAL_PP X-Git-Tag: php-5.6.0alpha2~1^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99fa59054d51770bb69a4fd8cc6d9b28a9bb9838;p=php Fixed SNI failure from missing Z_STRVAL_PP --- diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index fe2a43b882..523062e043 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -475,7 +475,7 @@ static inline int php_openssl_enable_crypto(php_stream *stream, ) { if (php_stream_context_get_option(stream->context, "ssl", "SNI_server_name", &val) == SUCCESS) { convert_to_string_ex(val); - SSL_set_tlsext_host_name(sslsock->ssl_handle, &val); + SSL_set_tlsext_host_name(sslsock->ssl_handle, Z_STRVAL_PP(val)); } else if (sslsock->url_name) { SSL_set_tlsext_host_name(sslsock->ssl_handle, sslsock->url_name); }