From 204bb730c8b5ca844763639fc475dc6c7c54a0da Mon Sep 17 00:00:00 2001 From: "Dr. Uwe Meyer-Gruhl" <17402664+meyergru@users.noreply.github.com> Date: Thu, 4 May 2023 09:12:11 +0200 Subject: [PATCH] Fix HOST variable not initialized, but inherited from external scope If a globally defined HOST variable is set, it overrides a non-existent commandline parameter, making -f useless. --- ssl-cert-check | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ssl-cert-check b/ssl-cert-check index 03819ef..ee45ef0 100755 --- a/ssl-cert-check +++ b/ssl-cert-check @@ -308,6 +308,9 @@ NAGIOSSUMMARY="FALSE" # NULL out the PKCSDBPASSWD variable for later use (cmdline: -k) PKCSDBPASSWD="" +# NULL out the HOST variable for later use, otherwise a global variable will be used to specify the host +HOST="" + # Type of certificate (PEM, DER, NET) (cmdline: -t) CERTTYPE="pem"