Commit 12e80544 authored by Graham Leggett's avatar Graham Leggett
Browse files

mod_cache_disk: Prevent a segfault should we receive a further bucket after

we have committed the cached entry.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1078104 13f79535-47bb-0310-9956-ffa450edef68
parent eddf5ec9
Loading
Loading
Loading
Loading
+1 −1
Changes for modules/cache/mod_cache_disk.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -1097,7 +1097,7 @@ static apr_status_t store_body(cache_handle_t *h, request_rec *r,
        e = APR_BRIGADE_FIRST(in);

        /* are we done completely? if so, pass any trailing buckets right through */
        if (dobj->done) {
        if (dobj->done || !dobj->data.pool) {
            APR_BUCKET_REMOVE(e);
            APR_BRIGADE_INSERT_TAIL(out, e);
            continue;