diff --git a/bind8/bind8-lib.pl b/bind8/bind8-lib.pl index 3f2741787..116ab62ee 100755 --- a/bind8/bind8-lib.pl +++ b/bind8/bind8-lib.pl @@ -22,7 +22,7 @@ if ($have_dnssec_tools) { # All companion modules must load cleanly. A partial install would # otherwise leave unqualified calls like rollmgr_sendcmd / rollrec_* # undefined, causing runtime death deep inside dnssec helpers. - my $ok = eval { + $have_dnssec_tools = eval { require Net::DNS::SEC::Tools::dnssectools; Net::DNS::SEC::Tools::dnssectools->import; require Net::DNS::SEC::Tools::rollmgr; @@ -37,7 +37,6 @@ if ($have_dnssec_tools) { Net::DNS->import; 1; }; - $have_dnssec_tools = 0 if (!$ok); } &init_config();