From: Wouter Wijngaards Date: Wed, 28 Oct 2009 08:04:38 +0000 (+0000) Subject: Removed hard malloc failure reported by Greg Woods. X-Git-Tag: release-1.4.0rc1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3bc6d6b5aa932bc78c79d19f2b0ced05811788f;p=thirdparty%2Funbound.git Removed hard malloc failure reported by Greg Woods. git-svn-id: file:///svn/unbound/trunk@1876 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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 ++;