diff options
-rw-r--r-- | plugins/check_ssh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 1c032a4f..2d635281 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c | |||
@@ -250,6 +250,7 @@ ssh_connect (char *haddr, int hport, char *remote_version) | |||
250 | printf | 250 | printf |
251 | (_("SSH WARNING - %s (protocol %s) version mismatch, expected '%s'\n"), | 251 | (_("SSH WARNING - %s (protocol %s) version mismatch, expected '%s'\n"), |
252 | ssh_server, ssh_proto, remote_version); | 252 | ssh_server, ssh_proto, remote_version); |
253 | recv (sd, output, BUFF_SZ, 0); | ||
253 | close(sd); | 254 | close(sd); |
254 | exit (STATE_WARNING); | 255 | exit (STATE_WARNING); |
255 | } | 256 | } |
@@ -260,6 +261,7 @@ ssh_connect (char *haddr, int hport, char *remote_version) | |||
260 | (_("SSH OK - %s (protocol %s) | %s\n"), | 261 | (_("SSH OK - %s (protocol %s) | %s\n"), |
261 | ssh_server, ssh_proto, fperfdata("time", elapsed_time, "s", | 262 | ssh_server, ssh_proto, fperfdata("time", elapsed_time, "s", |
262 | FALSE, 0, FALSE, 0, TRUE, 0, TRUE, (int)socket_timeout)); | 263 | FALSE, 0, FALSE, 0, TRUE, 0, TRUE, (int)socket_timeout)); |
264 | recv (sd, output, BUFF_SZ, 0); | ||
263 | close(sd); | 265 | close(sd); |
264 | exit (STATE_OK); | 266 | exit (STATE_OK); |
265 | } | 267 | } |