after deleting the EOS bucket.
This prevents a seg fault in mod_include when the connection dies. There
doesn't seem to be much point in passing empty brigades in general.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91225
13f79535-47bb-0310-9956-
ffa450edef68
if (APR_BUCKET_IS_EOS(e)) {
apr_bucket_delete(e);
}
- return ap_pass_brigade(f->next, bb);
+ if (!APR_BRIGADE_EMPTY(bb)) {
+ return ap_pass_brigade(f->next, bb);
+ }
+ else {
+ return APR_SUCCESS;
+ }
}