diff options
author | Erich Eckner <git@eckner.net> | 2022-06-04 18:08:34 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-06-04 18:08:34 +0200 |
commit | 5ce2afc338f59f395e97da16452a0a4a673134f8 (patch) | |
tree | 4cbc7603a5f9a83969b05701be24a9d7053170e3 | |
parent | 7df1988520b210de9cfef4f280901aa1db2d7e68 (diff) | |
download | logwatch-overrides-5ce2afc338f59f395e97da16452a0a4a673134f8.tar.xz |
named: declare the right variable
-rw-r--r-- | named | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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... |