[monitoring-plugins] check_smtp: small improvements

Lorenz Kästle git at monitoring-plugins.org
Mon Mar 10 21:40:12 CET 2025


 Module: monitoring-plugins
 Branch: master
 Commit: 897fef937096c6aae32f9cd80d7b867558596bc5
 Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
   Date: Mon Mar 10 20:54:52 2025 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=897fef93

check_smtp: small improvements

---

 plugins/check_smtp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index ac0aa45d..324549d4 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -423,7 +423,7 @@ int main(int argc, char **argv) {
 						break;
 					}
 					break;
-				} while (0);
+				} while (false);
 			} else {
 				result = STATE_CRITICAL;
 				xasprintf(&error_msg, _("only authtype LOGIN is supported, "));
@@ -462,7 +462,7 @@ int main(int argc, char **argv) {
 /* process command-line arguments */
 check_smtp_config_wrapper process_arguments(int argc, char **argv) {
 	enum {
-		SNI_OPTION
+		SNI_OPTION = CHAR_MAX + 1
 	};
 
 	int option = 0;



More information about the Commits mailing list