Skip to content

Commit 837f9e3

Browse files
committed
Add missing check for php_openssl_set_server_dh_param()
1 parent 2cacde0 commit 837f9e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/openssl/xp_ssl.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,10 @@ static zend_result php_openssl_set_server_specific_opts(php_stream *stream, SSL_
13201320
php_error_docref(NULL, E_WARNING, "rsa_key_size context option has been removed");
13211321
}
13221322

1323-
php_openssl_set_server_dh_param(stream, ctx);
1323+
if (php_openssl_set_server_dh_param(stream, ctx) == FAILURE) {
1324+
return FAILURE;
1325+
}
1326+
13241327
zv = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "ssl", "single_dh_use");
13251328
if (zv == NULL || zend_is_true(zv)) {
13261329
ssl_ctx_options |= SSL_OP_SINGLE_DH_USE;

0 commit comments

Comments
 (0)