summaryrefslogtreecommitdiffstats
path: root/modules/cache
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2011-03-04 20:07:22 +0100
committerGraham Leggett <minfrin@apache.org>2011-03-04 20:07:22 +0100
commit1bb3c4b8a98b7d2ad620e3c4d6a7bd75e2ac6310 (patch)
tree2bdf4f17b49663eb0cf2dd00693e62faa35efb14 /modules/cache
parentinstdso.sh: HP-UX's native 'install' apparently is not compatible (diff)
downloadapache2-1bb3c4b8a98b7d2ad620e3c4d6a7bd75e2ac6310.tar.xz
apache2-1bb3c4b8a98b7d2ad620e3c4d6a7bd75e2ac6310.zip
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
Diffstat (limited to 'modules/cache')
-rw-r--r--modules/cache/mod_cache_disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/cache/mod_cache_disk.c b/modules/cache/mod_cache_disk.c
index 4d5fef2a6c..3b14a24c89 100644
--- a/modules/cache/mod_cache_disk.c
+++ b/modules/cache/mod_cache_disk.c
@@ -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;