From d3bc6d6b5aa932bc78c79d19f2b0ced05811788f Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Wed, 28 Oct 2009 08:04:38 +0000 Subject: [PATCH] Removed hard malloc failure reported by Greg Woods. git-svn-id: file:///svn/unbound/trunk@1876 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ util/alloc.c | 11 ++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 6df5a9a9a..043518a89 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +29 October 2009: Wouter + - removed abort on prealloc failure, error still printed but softfail. + 27 October 2009: Wouter - iana portlist updated. diff --git a/util/alloc.c b/util/alloc.c index 73a354319..3fe09f790 100644 --- a/util/alloc.c +++ b/util/alloc.c @@ -69,8 +69,10 @@ prealloc(struct alloc_cache* alloc) alloc_special_t* p; int i; for(i=0; iquar); alloc->quar = p; @@ -86,7 +88,10 @@ prealloc_blocks(struct alloc_cache* alloc, size_t num) struct regional* r; for(i=0; inext = (char*)alloc->reg_list; alloc->reg_list = r; alloc->num_reg_blocks ++; -- 2.47.3