]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix unbound-checkconf for control-use-cert.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 18 Jun 2018 12:15:21 +0000 (12:15 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 18 Jun 2018 12:15:21 +0000 (12:15 +0000)
git-svn-id: file:///svn/unbound/trunk@4742 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
smallapp/unbound-checkconf.c

index 96a8a964027af4db5f786859399ef2b95fbb5c3a..1fb7bd4548f0c8ca27402f338d7031730226c6a5 100644 (file)
@@ -1,6 +1,7 @@
 18 June 2018: Wouter
        - Fix that control-use-cert: no works for 127.0.0.1 to disable certs.
          This fix is part of 1.7.3rc2.
+       - Fix unbound-checkconf for control-use-cert.
 
 15 June 2018: Wouter
        - tag for 1.7.3rc1.
index a1a3fc62ad4baf056658fc45e900ff461cde47c9..37ba9eab31a13b2649a10a968322a62c7e1206cc 100644 (file)
@@ -542,7 +542,8 @@ morechecks(struct config_file* cfg, const char* fname)
 #  endif
        }
 #endif
-       if(cfg->remote_control_enable && options_remote_is_address(cfg)) {
+       if(cfg->remote_control_enable && options_remote_is_address(cfg)
+               && cfg->control_use_cert) {
                check_chroot_string("server-key-file", &cfg->server_key_file,
                        cfg->chrootdir, cfg);
                check_chroot_string("server-cert-file", &cfg->server_cert_file,