Commit df643b9f authored by Cliff Woolley's avatar Cliff Woolley
Browse files

Fix a segfault seen on daedalus earlier this evening. All that was happening

was that we forgot to check whether ctx->bb was empty, so when we pulled the
first bucket, it would be the sentinel, and we'd segfault trying to apr_bucket_read
the sentinel.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91641 13f79535-47bb-0310-9956-ffa450edef68
parent e88ac3e4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2871,6 +2871,9 @@ static int core_input_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mod
        apr_bucket *e;
        apr_bucket_brigade *newbb;

        if (APR_BRIGADE_EMPTY(ctx->b))
            return APR_EOF;

        e = APR_BRIGADE_FIRST(ctx->b);
        rv = apr_bucket_read(e, &str, &len, mode);