Commit c4508109 authored by Greg Ames's avatar Greg Ames
Browse files

ap_sub_req_output_filter: don't pass along a brigade if it becomes empty

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
parent c22079e1
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1520,8 +1520,13 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_sub_req_output_filter(ap_filter_t *f,
    if (APR_BUCKET_IS_EOS(e)) {
        apr_bucket_delete(e);
    }
    if (!APR_BRIGADE_EMPTY(bb)) {
        return ap_pass_brigade(f->next, bb);
    }
    else {
        return APR_SUCCESS;
    }
}

 
AP_DECLARE(int) ap_some_auth_required(request_rec *r)