From 1e773434825eafddfa78e16b494b33fa447075cd Mon Sep 17 00:00:00 2001 From: Joe Cooper Date: Sat, 23 May 2026 01:04:05 -0500 Subject: [PATCH] Don't use temp var for eval result, not idiomatic --- bind8/bind8-lib.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();