]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #603: unbound-checkconf -o <option> should skip verification
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 18 Aug 2014 07:21:01 +0000 (07:21 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 18 Aug 2014 07:21:01 +0000 (07:21 +0000)
  checks.

git-svn-id: file:///svn/unbound/trunk@3207 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
smallapp/unbound-checkconf.c

index 7c526e9cf07ada38fdd2f0ba0e2acd587cfd4f30..b9e773191de8791883e41fadc38c5bff270e8762 100644 (file)
@@ -1,9 +1,17 @@
+18 August 2014: Wouter
+       - Fix #603: unbound-checkconf -o <option> should skip verification
+         checks.
+
 5 August 2014: Wouter
        - dnstap support, with a patch from Farsight Security, written by
          Robert Edmonds. The --enable-dnstap needs libfstrm and protobuf-c.
          It is BSD licensed (see dnstap/dnstap.c).
          Building with --enable-dnstap needs pkg-config with this patch.
        - Noted dnstap in doc/README and doc/CREDITS.
+       - Changes to the dnstap patch.
+         - lint fixes.
+         - dnstap/dnstap_config.h should not have been added to the repo,
+           because is it generated.
 
 1 August 2014: Wouter
        - Patch add msg, rrset, infra and key cache sizes to stats command
index 78733edcfd702f15f1380497a587111fa0bd4695..e26ae91c44cd77baf94cf9f77c65fffe6cbb47fd 100644 (file)
@@ -459,6 +459,11 @@ checkconf(const char* cfgfile, const char* opt)
                config_delete(cfg);
                exit(1);
        }
+       if(opt) {
+               print_option(cfg, opt);
+               config_delete(cfg);
+               return;
+       }
        morechecks(cfg, cfgfile);
        check_mod(cfg, iter_get_funcblock());
        check_mod(cfg, val_get_funcblock());
@@ -468,8 +473,7 @@ checkconf(const char* cfgfile, const char* opt)
 #endif
        check_fwd(cfg);
        check_hints(cfg);
-       if(opt) print_option(cfg, opt);
-       else    printf("unbound-checkconf: no errors in %s\n", cfgfile);
+       printf("unbound-checkconf: no errors in %s\n", cfgfile);
        config_delete(cfg);
 }