]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Python checks fix.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 30 Mar 2009 12:32:54 +0000 (12:32 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 30 Mar 2009 12:32:54 +0000 (12:32 +0000)
git-svn-id: file:///svn/unbound/trunk@1568 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
smallapp/unbound-checkconf.c

index 3a7b94942d3e27512ac6b7636de7f2847e17b6be..f5f22549f4e9edee30e94a3f8f4b24a3dce8fcc1 100644 (file)
@@ -3,6 +3,7 @@
        - Fixup so no non-absolute rpaths are added.
        - Fixup validation of RRSIG queries, they are let through.
        - read /dev/random before chroot
+       - checkconf fix no python checks when no python module enabled.
 
 27 March 2009: Wouter
        - nicer -h output. report linked libraries and modules.
index a0c7f76a5c9362008f089ab41cbb2fdfd32a326d..b6dc02e0318b6b30a50040820eae7c12977fc1cd 100644 (file)
@@ -554,7 +554,8 @@ checkconf(const char* cfgfile, const char* opt)
        check_mod(cfg, iter_get_funcblock());
        check_mod(cfg, val_get_funcblock());
 #ifdef WITH_PYTHONMODULE
-       check_mod(cfg, pythonmod_get_funcblock());
+       if(strstr(cfg->module_conf, "python"))
+               check_mod(cfg, pythonmod_get_funcblock());
 #endif
        check_fwd(cfg);
        if(opt) print_option(cfg, opt);