]> granicus.if.org Git - apache/commitdiff
mod_cache_disk: Prevent a segfault should we receive a further bucket after
authorGraham Leggett <minfrin@apache.org>
Fri, 4 Mar 2011 19:07:22 +0000 (19:07 +0000)
committerGraham Leggett <minfrin@apache.org>
Fri, 4 Mar 2011 19:07:22 +0000 (19:07 +0000)
we have committed the cached entry.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1078104 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/mod_cache_disk.c

index 4d5fef2a6c1117163522ce1d270867e41ba42ebe..3b14a24c895c79c289b6eafb21cc281455e6c3e8 100644 (file)
@@ -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;