summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_ssh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index afe44c95..9de7de38 100644
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
@@ -233,6 +233,7 @@ ssh_connect (char *haddr, int hport, char *remote_version)
233 recv (sd, output, BUFF_SZ, 0); 233 recv (sd, output, BUFF_SZ, 0);
234 if (strncmp (output, "SSH", 3)) { 234 if (strncmp (output, "SSH", 3)) {
235 printf (_("Server answer: %s"), output); 235 printf (_("Server answer: %s"), output);
236 close(sd);
236 exit (STATE_CRITICAL); 237 exit (STATE_CRITICAL);
237 } 238 }
238 else { 239 else {
@@ -252,6 +253,7 @@ ssh_connect (char *haddr, int hport, char *remote_version)
252 printf 253 printf
253 (_("SSH WARNING - %s (protocol %s) version mismatch, expected '%s'\n"), 254 (_("SSH WARNING - %s (protocol %s) version mismatch, expected '%s'\n"),
254 ssh_server, ssh_proto, remote_version); 255 ssh_server, ssh_proto, remote_version);
256 close(sd);
255 exit (STATE_WARNING); 257 exit (STATE_WARNING);
256 } 258 }
257 259