From 5cf53de34fa410702ca59437cdf3f304366c3c55 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Mon, 10 Mar 2025 20:56:09 +0100 Subject: check_smtp: fix positional host logic --- plugins/check_smtp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/check_smtp.c') diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index 324549d4..fd492294 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c @@ -697,6 +697,8 @@ check_smtp_config_wrapper process_arguments(int argc, char **argv) { } else { usage2(_("Invalid hostname/address"), argv[c]); } + } else { + result.config.server_address = strdup("localhost"); } } -- cgit v1.2.3-74-g34f1