From: Wouter Wijngaards Date: Thu, 29 Nov 2018 14:26:16 +0000 (+0000) Subject: - Refuse to start with no ports. X-Git-Tag: release-1.9.0rc1~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b23c373f4de5046238e1ac359c52595cb7f248a5;p=thirdparty%2Funbound.git - Refuse to start with no ports. git-svn-id: file:///svn/unbound/trunk@4997 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 82d91c1a8..3a121988c 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -4,6 +4,7 @@ - tag for 1.8.2rc1. - Fix that unbound-checkconf does not complains if the config file is not placed inside the chroot. + - Refuse to start with no ports. 28 November 2018: Wouter - Fix leak in chroot fix for auth-zone. diff --git a/services/outside_network.c b/services/outside_network.c index e0684fc66..c3569dbbf 100644 --- a/services/outside_network.c +++ b/services/outside_network.c @@ -759,7 +759,7 @@ outside_network_create(struct comm_base *base, size_t bufsize, outnet->delay_tv.tv_usec = (delayclose%1000)*1000; } #endif - if(numavailports == 0) { + if(numavailports == 0 || num_ports == 0) { log_err("no outgoing ports available"); outside_network_delete(outnet); return NULL;