From a5459c09c99c9e4e7bd3e15108f8c20832716620 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 29 Sep 2010 01:25:35 +0000 Subject: [PATCH] - Fixed bug #52947 (segfault when ssl stream option capture_peer_cert_chain used) --- NEWS | 2 ++ ext/openssl/xp_ssl.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index c74002110b..0f968246e0 100644 --- a/NEWS +++ b/NEWS @@ -22,6 +22,8 @@ - Fixed possible crash in mssql_fetch_batch(). (Kalle) - Fixed inconsistent backlog default value (-1) in FPM on many systems. (fat) +- Fixed bug #52947 (segfault when ssl stream option capture_peer_cert_chain + used). (Felipe) - Fixed bug #52931 (strripos not overloaded with function overloading enabled). (Felipe) - Fixed bug #52929 (Segfault in filter_var with FILTER_VALIDATE_EMAIL with diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index 412a445d11..930aa1f430 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -502,7 +502,6 @@ static inline int php_openssl_enable_crypto(php_stream *stream, zend_list_insert(mycert, php_openssl_get_x509_list_id())); add_next_index_zval(arr, zcert); - FREE_ZVAL(zcert); } } else { -- 2.50.1