summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sapi/apache2filter/sapi_apache2.c3
1 files changed, 3 insertions, 0 deletions
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.