apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1438960 - /apr/apr/trunk/buckets/apr_buckets_alloc.c
Date Sat, 26 Jan 2013 20:43:03 GMT
Author: sf
Date: Sat Jan 26 20:43:02 2013
New Revision: 1438960

URL: http://svn.apache.org/viewvc?rev=1438960&view=rev
Log:
Don't corrupt the bucket allocator in out-of-mem situation

Modified:
    apr/apr/trunk/buckets/apr_buckets_alloc.c

Modified: apr/apr/trunk/buckets/apr_buckets_alloc.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/buckets/apr_buckets_alloc.c?rev=1438960&r1=1438959&r2=1438960&view=diff
==============================================================================
--- apr/apr/trunk/buckets/apr_buckets_alloc.c (original)
+++ apr/apr/trunk/buckets/apr_buckets_alloc.c Sat Jan 26 20:43:02 2013
@@ -144,6 +144,7 @@ APR_DECLARE_NONSTD(void *) apr_bucket_al
             if (endp >= active->endp) {
                 list->blocks = apr_allocator_alloc(list->allocator, ALLOC_AMT);
                 if (!list->blocks) {
+                    list->blocks = active;
                     return NULL;
                 }
                 list->blocks->next = active;



Mime
View raw message