From: Sterling Hughes Date: Sat, 18 Aug 2001 01:34:19 +0000 (+0000) Subject: fix crash bug (Doug MacEachern, dougm@covalent.net) X-Git-Tag: PRE_SUBST_Z_MACROS~464 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e12954669890ac46f10bd7e8da6e7560a87b018;p=php fix crash bug (Doug MacEachern, dougm@covalent.net) --- 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.