]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix for unbound-checkconf, check ipsecmod-hook if ipsecmod is turned
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 3 Jul 2017 07:14:37 +0000 (07:14 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 3 Jul 2017 07:14:37 +0000 (07:14 +0000)
  on.

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

doc/Changelog
smallapp/unbound-checkconf.c

index 4c167852e748488067ae3abf906964bdfd748545..4ea9856b0146f1647be9de5f45e9cf70bd414d89 100644 (file)
@@ -1,3 +1,7 @@
+3 July 2017: Wouter
+       - Fix for unbound-checkconf, check ipsecmod-hook if ipsecmod is turned
+         on.
+
 29 June 2017: Wouter
        - Fix python example0 return module wait instead of error for pass.
        - iana portlist update
index 11df4415c5c51a08b25c9789086220e8324e942a..2088a8c61cae7986fdf0d6a1c436756543a72986 100644 (file)
@@ -427,8 +427,11 @@ morechecks(struct config_file* cfg, const char* fname)
        check_chroot_string("dlv-anchor-file", &cfg->dlv_anchor_file,
                cfg->chrootdir, cfg);
 #ifdef USE_IPSECMOD
-       check_chroot_string("ipsecmod-hook", &cfg->ipsecmod_hook, cfg->chrootdir,
-               cfg);
+       if(cfg->ipsecmod_enabled && strstr(cfg->module_conf, "ipsecmod")) {
+               /* only check hook if enabled */
+               check_chroot_string("ipsecmod-hook", &cfg->ipsecmod_hook,
+                       cfg->chrootdir, cfg);
+       }
 #endif
        /* remove chroot setting so that modules are not stripping pathnames*/
        free(cfg->chrootdir);