[prev in list] [next in list] [prev in thread] [next in thread]
List: apr-cvs
Subject: svn commit: r1438960 - /apr/apr/trunk/buckets/apr_buckets_alloc.c
From: sf () apache ! org
Date: 2013-01-26 20:43:03
Message-ID: 20130126204303.2E9C123889E1 () eris ! apache ! org
[Download RAW message or body]
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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic