mirror of
https://github.com/php/php-src.git
synced 2026-04-25 08:58:28 +02:00
Avoid potential segfault when preparing an SSL stream.
This commit is contained in:
@@ -2967,7 +2967,7 @@ PHP_FUNCTION(openssl_open)
|
||||
|
||||
/* SSL verification functions */
|
||||
|
||||
#define GET_VER_OPT(name) SUCCESS == php_stream_context_get_option(stream->context, "ssl", name, &val)
|
||||
#define GET_VER_OPT(name) (stream->context && SUCCESS == php_stream_context_get_option(stream->context, "ssl", name, &val))
|
||||
#define GET_VER_OPT_STRING(name, str) if (GET_VER_OPT(name)) { convert_to_string_ex(val); str = Z_STRVAL_PP(val); }
|
||||
|
||||
static int verify_callback(int preverify_ok, X509_STORE_CTX *ctx)
|
||||
|
||||
Reference in New Issue
Block a user