diff options
| author | Richard Laager <rlaager@wiktel.com> | 2025-07-11 18:38:42 -0500 |
|---|---|---|
| committer | Richard Laager <rlaager@wiktel.com> | 2025-07-11 18:44:03 -0500 |
| commit | 1f2acfd1c6577db6e3d385614922e32ac9fad03f (patch) | |
| tree | f0f57e407b0ca52b235855acd81b1e6b3f0673f9 | |
| parent | 661ecff45c5f4c41c22ef9fd4fe308100b97d6bf (diff) | |
| download | monitoring-plugins-1f2acfd1c6577db6e3d385614922e32ac9fad03f.tar.gz | |
check_ssh: Correct type on len variable
strlen() returns a size_t.
Signed-off-by: Richard Laager <rlaager@wiktel.com>
| -rw-r--r-- | plugins/check_ssh.c | 2 |
1 files changed, 1 insertions, 1 deletions
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_ | |||
| 255 | byte_offset = 0; | 255 | byte_offset = 0; |
| 256 | 256 | ||
| 257 | char *index = NULL; | 257 | char *index = NULL; |
| 258 | unsigned long len = 0; | 258 | size_t len = 0; |
| 259 | while ((index = strchr(output + byte_offset, '\n')) != NULL) { | 259 | while ((index = strchr(output + byte_offset, '\n')) != NULL) { |
| 260 | /*Partition the buffer so that this line is a separate string, | 260 | /*Partition the buffer so that this line is a separate string, |
| 261 | * by replacing the newline with NUL*/ | 261 | * by replacing the newline with NUL*/ |
