From f9aeb8904dffbc74972e87618942e3e2f30f813d Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Mon, 30 Mar 2009 12:32:54 +0000 Subject: [PATCH] Python checks fix. git-svn-id: file:///svn/unbound/trunk@1568 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 1 + smallapp/unbound-checkconf.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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);