summaryrefslogtreecommitdiff
path: root/ext/openssl/xp_ssl.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2008-11-16 23:03:59 +0000
committerPierre Joye <pajoye@php.net>2008-11-16 23:03:59 +0000
commit23018b92b8aff888d53012a9818a789bbdfb0348 (patch)
treecb01302c26e90a0b472bd26bef46522fa41211a0 /ext/openssl/xp_ssl.c
parent9a5ba8a44114f2e0a8b4883b27fe3c70fba43c61 (diff)
downloadphp-git-23018b92b8aff888d53012a9818a789bbdfb0348.tar.gz
- #46127, php_openssl_tcp_sockop_accept forgets to set context on accepted stream
Diffstat (limited to 'ext/openssl/xp_ssl.c')
-rw-r--r--ext/openssl/xp_ssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c
index a6b3a4b7e7..caaf7907c9 100644
--- a/ext/openssl/xp_ssl.c
+++ b/ext/openssl/xp_ssl.c
@@ -555,6 +555,7 @@ static inline int php_openssl_tcp_sockop_accept(php_stream *stream, php_openssl_
xparam->outputs.client = php_stream_alloc_rel(stream->ops, clisockdata, NULL, "r+");
if (xparam->outputs.client) {
+ xparam->outputs.client->context = stream->context;
if (stream->context) {
zend_list_addref(stream->context->rsrc_id);
}