diff --git a/doc/Changelog b/doc/Changelog index 3a7b94942..f5f22549f 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/smallapp/unbound-checkconf.c b/smallapp/unbound-checkconf.c index a0c7f76a5..b6dc02e03 100644 --- a/smallapp/unbound-checkconf.c +++ b/smallapp/unbound-checkconf.c @@ -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);