]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Refuse to start with no ports.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 29 Nov 2018 14:26:16 +0000 (14:26 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 29 Nov 2018 14:26:16 +0000 (14:26 +0000)
git-svn-id: file:///svn/unbound/trunk@4997 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/outside_network.c

index 82d91c1a8df639e8f23184dc1d1506d550c38bcf..3a121988cebb93d260c482cc3b59a4862010057b 100644 (file)
@@ -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.
index e0684fc6632d5d8847b2b41fed6f181d3d5e8bed..c3569dbbfc23421d614617f3a95a7c5dd4b2bf9f 100644 (file)
@@ -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;