1
0
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:
Wez Furlong
2003-05-05 16:30:04 +00:00
parent 98baae88df
commit 246300a60c
+1 -1
View File
@@ -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)