falls down the chain by accident. Otherwise we are likely to run in a
SEGFAULT. So remove ourselves from the chain.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@475406
13f79535-47bb-0310-9956-
ffa450edef68
e = APR_BRIGADE_FIRST(bb);
if (APR_BUCKET_IS_EOS(e)) {
+ /*
+ * We are really done now. Ensure that we never return here, even
+ * if a second EOS bucket falls down the chain. Thus remove
+ * ourselves.
+ */
+ ap_remove_output_filter(f);
ctx->stream.avail_in = 0; /* should be zero already anyway */
/*
* Flush the remaining data from the zlib buffers. It is correct