File php-CVE-2018-17082.patch of Package php7.14228

Index: php-7.2.5/sapi/apache2handler/sapi_apache2.c
===================================================================
--- php-7.2.5.orig/sapi/apache2handler/sapi_apache2.c	2018-04-24 17:10:05.000000000 +0200
+++ php-7.2.5/sapi/apache2handler/sapi_apache2.c	2018-09-19 12:59:38.893512800 +0200
@@ -712,6 +712,7 @@ zend_first_try {
 	if (!parent_req) {
 		php_apache_request_dtor(r);
 		ctx->request_processed = 1;
+		apr_brigade_cleanup(brigade);
 		bucket = apr_bucket_eos_create(r->connection->bucket_alloc);
 		APR_BRIGADE_INSERT_TAIL(brigade, bucket);
 
openSUSE Build Service is sponsored by