diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-10 20:56:09 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-10 20:56:09 +0100 |
commit | 5cf53de34fa410702ca59437cdf3f304366c3c55 (patch) | |
tree | 9ed15f44dfe6e38e7696aecbfd622e6775d5c4e2 /plugins/check_smtp.c | |
parent | 897fef937096c6aae32f9cd80d7b867558596bc5 (diff) | |
download | monitoring-plugins-5cf53de34fa410702ca59437cdf3f304366c3c55.tar.gz |
check_smtp: fix positional host logic
Diffstat (limited to 'plugins/check_smtp.c')
-rw-r--r-- | plugins/check_smtp.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { | |||
697 | } else { | 697 | } else { |
698 | usage2(_("Invalid hostname/address"), argv[c]); | 698 | usage2(_("Invalid hostname/address"), argv[c]); |
699 | } | 699 | } |
700 | } else { | ||
701 | result.config.server_address = strdup("localhost"); | ||
700 | } | 702 | } |
701 | } | 703 | } |
702 | 704 | ||