dsa-check-zone-rrsig-expiration-many: fix use of uninitialized value in numeric gt (>)
authorPeter Palfrader <peter@palfrader.org>
Thu, 25 Oct 2018 07:48:16 +0000 (09:48 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 25 Oct 2018 07:49:38 +0000 (09:49 +0200)
We have a state count array, and we assign each state (ok, warn, etc.) a
nagios error code.  one of the states we use internally is "unsigned",
which is not an error but did not have an integer exit code.  Give it 0
now.

dsa-nagios-checks/checks/dsa-check-zone-rrsig-expiration-many
dsa-nagios-checks/debian/changelog

index ec99484..674dd1c 100755 (executable)
@@ -190,6 +190,7 @@ my %state_mapping = (
        'unknown' => 255,
        'critical' => 2,
        'warn' => 1,
+       'unsigned' => 0,
        'ok' => 0 );
 
 for my $state (@$states) {
index c5d80fe..4237d0e 100644 (file)
@@ -2,6 +2,8 @@ dsa-nagios-checks (117) UNRELEASED; urgency=medium
 
   * dsa-check-hpssacli: add --ignore-cache
   * add: dsa-check-unbound-anchors
+  * dsa-check-zone-rrsig-expiration-many: fix use of uninitialized value
+    with unsigned zones.
 
  -- Peter Palfrader <weasel@debian.org>  Sun, 11 Mar 2018 09:06:13 +0100