summaryrefslogtreecommitdiffstats
path: root/plugins/check_ssh.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-02-25 11:36:54 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-07 23:38:50 +0100
commitb48ec884be9ee0026c20575f06a799b2444e284b (patch)
tree89faa356f8a6db185d090d5a3ef50e549f98e522 /plugins/check_ssh.c
parent9ea4dbc25352c7cb408e392e5ae9011b9b0ff3d6 (diff)
downloadmonitoring-plugins-b48ec884be9ee0026c20575f06a799b2444e284b.tar.gz
check_ssh: Verify that timeout is a positive integer
Diffstat (limited to 'plugins/check_ssh.c')
-rw-r--r--plugins/check_ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index 3e25910d..fe8681e2 100644
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
@@ -148,7 +148,7 @@ process_arguments_wrapper process_arguments(int argc, char **argv) {
148 verbose = true; 148 verbose = true;
149 break; 149 break;
150 case 't': /* timeout period */ 150 case 't': /* timeout period */
151 if (!is_integer(optarg)) { 151 if (!is_intpos(optarg)) {
152 usage2(_("Timeout interval must be a positive integer"), optarg); 152 usage2(_("Timeout interval must be a positive integer"), optarg);
153 } else { 153 } else {
154 socket_timeout = atoi(optarg); 154 socket_timeout = atoi(optarg);