From 0e12954669890ac46f10bd7e8da6e7560a87b018 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Sat, 18 Aug 2001 01:34:19 +0000 Subject: [PATCH] fix crash bug (Doug MacEachern, dougm@covalent.net) --- sapi/apache2filter/sapi_apache2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index d50c078417..9d76e13245 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -163,6 +163,9 @@ php_apache_sapi_flush(void *server_context) apr_bucket_brigade *bb; apr_bucket *b; + if (!server_context) + return; + /* Send a flush bucket down the filter chain. The current default * handler seems to act on the first flush bucket, but ignores * all further flush buckets. -- 2.50.1