summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-06-04 18:08:34 +0200
committerErich Eckner <git@eckner.net>2022-06-04 18:08:34 +0200
commit5ce2afc338f59f395e97da16452a0a4a673134f8 (patch)
tree4cbc7603a5f9a83969b05701be24a9d7053170e3
parent7df1988520b210de9cfef4f280901aa1db2d7e68 (diff)
downloadlogwatch-overrides-5ce2afc338f59f395e97da16452a0a4a673134f8.tar.xz
named: declare the right variable
-rw-r--r--named6
1 files changed, 3 insertions, 3 deletions
diff --git a/named b/named
index 7280678..98cd3a6 100644
--- a/named
+++ b/named
@@ -57,7 +57,7 @@ my (
%DeniedQueryNoCache, %DeniedTCPClient, %DeniedZoneTransfers,
%FailedZoneTransfers, %FormErr, %InsecUpdate,
%JournalFail, %LameServer, %MasterFailure,
-%NetworkUnreachable, %NonAuthoritative, %NTAs, %RetryLimit,
+%NetworkUnreachable, %NonAuthoritative, %RetryLimit,
%UnexpRCODE, %UpdateDenied, %UpdateForwardingDenied,
%ZoneExpired, %ZoneFileErrors, %ZoneLoaded,
%ZoneReceivedNotify, %ZoneRefusedNotify, %ZoneRemoved,
@@ -68,7 +68,7 @@ my (
%GeoIPError, %HUR, %Hints,
%LimitSlip, %NError, %NUR,
%NoSOA, %OtherList, %StartLog,
-%UnknownCCCommands,
+%UnknownCCCommands, %NTAs,
);
# Avoid "Use of uninitialized value" warning messages.
sub ValueOrDefault {
@@ -475,7 +475,7 @@ while (defined(my $ThisLine = <STDIN>)) {
$UpdateDenied{"$Rhost ($Error)"}++;
}
# ignore rest of samba4 dlz entries for now
- } elsif ( ($NTA, $View) = ($ThisLine =~ /^added NTA '([^']+)' \(\d+ sec\) in view '([^']+)'$/)) {
+ } elsif ( my ($NTA, $View) = ($ThisLine =~ /^added NTA '([^']+)' \(\d+ sec\) in view '([^']+)'$/)) {
$NTAs{"$View: $NTA"}++;
} else {
# Report any unmatched entries...