From: Wouter Wijngaards Date: Fri, 22 Jul 2016 07:02:03 +0000 (+0000) Subject: - Fix #801: missing error condition handling in X-Git-Tag: release-1.5.10~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b7e0676b9cc244c8d5618900e0488436c4b4379;p=thirdparty%2Funbound.git - Fix #801: missing error condition handling in daemon_create_workers(). git-svn-id: file:///svn/unbound/trunk@3822 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/daemon/daemon.c b/daemon/daemon.c index 1036fcde2..0895c96f2 100644 --- a/daemon/daemon.c +++ b/daemon/daemon.c @@ -404,6 +404,8 @@ daemon_create_workers(struct daemon* daemon) } daemon->workers = (struct worker**)calloc((size_t)daemon->num, sizeof(struct worker*)); + if(!daemon->workers) + fatal_exit("out of memory during daemon init"); if(daemon->cfg->dnstap) { #ifdef USE_DNSTAP daemon->dtenv = dt_create(daemon->cfg->dnstap_socket_path, diff --git a/doc/Changelog b/doc/Changelog index 865b49a19..1f20896a7 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +22 July 2016: Wouter + - Fix #801: missing error condition handling in + daemon_create_workers(). + 20 July 2016: Wouter - Fix typo in unbound.conf.