Module: monitoring-plugins
 Branch: master
 Commit: 1f2acfd1c6577db6e3d385614922e32ac9fad03f
 Author: Richard Laager <rlaa...@wiktel.com>
   Date: Fri Jul 11 18:38:42 2025 -0500
    URL: 
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=1f2acfd1

check_ssh: Correct type on len variable

strlen() returns a size_t.

Signed-off-by: Richard Laager <rlaa...@wiktel.com>

---

 plugins/check_ssh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index fd082e11..2c76fa84 100644
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
@@ -255,7 +255,7 @@ int ssh_connect(mp_check *overall, char *haddr, int hport, 
char *desired_remote_
                        byte_offset = 0;
 
                        char *index = NULL;
-                       unsigned long len = 0;
+                       size_t len = 0;
                        while ((index = strchr(output + byte_offset, '\n')) != 
NULL) {
                                /*Partition the buffer so that this line is a 
separate string,
                                 * by replacing the newline with NUL*/

Reply via email to