]> granicus.if.org Git - php/commitdiff
Fix compilation on systems without ecdh_curve
authorJohannes Schlüter <johannes@php.net>
Wed, 27 Aug 2014 22:09:14 +0000 (00:09 +0200)
committerJohannes Schlüter <johannes@php.net>
Wed, 27 Aug 2014 22:12:48 +0000 (00:12 +0200)
ext/openssl/xp_ssl.c

index bc877adb1c6c506466daf023ebca3c127a104de7..7954fb753a289762e321912bf877eab66a4d4788 100644 (file)
@@ -1177,7 +1177,8 @@ static int set_server_specific_opts(php_stream *stream, SSL_CTX *ctx TSRMLS_DC)
                return FAILURE;
        }
 #else
-       if (SUCCESS == php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "ssl", "ecdh_curve", &val)) {
+       val = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "ssl", "ecdh_curve");
+       if (val != NULL) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING,
                        "ECDH curve support not compiled into the OpenSSL lib against which PHP is linked");