diff --git a/bind8/bind8-lib.pl b/bind8/bind8-lib.pl index c0565f8dd..a0554b917 100755 --- a/bind8/bind8-lib.pl +++ b/bind8/bind8-lib.pl @@ -3365,6 +3365,7 @@ if (!$single) { # Add the new DNSKEY record(s) to the zone my $chrootfn = &get_zone_file($z); +$chrootfn || return "Could not work out records file!"; my @recs = &read_zone_file($chrootfn, $dom); for(my $i=$#recs; $i>=0; $i--) { if ($recs[$i]->{'type'} eq 'DNSKEY') {