You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2011/03/04 20:07:22 UTC

svn commit: r1078104 - /httpd/httpd/trunk/modules/cache/mod_cache_disk.c

Author: minfrin
Date: Fri Mar  4 19:07:22 2011
New Revision: 1078104

URL: http://svn.apache.org/viewvc?rev=1078104&view=rev
Log:
mod_cache_disk: Prevent a segfault should we receive a further bucket after
we have committed the cached entry.

Modified:
    httpd/httpd/trunk/modules/cache/mod_cache_disk.c

Modified: httpd/httpd/trunk/modules/cache/mod_cache_disk.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache_disk.c?rev=1078104&r1=1078103&r2=1078104&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache_disk.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache_disk.c Fri Mar  4 19:07:22 2011
@@ -1097,7 +1097,7 @@ static apr_status_t store_body(cache_han
         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;