freebsd-ports/net-mgmt/nagios-plugins/files/patch-plugins_check__ssh.c
Mathieu Arnold 37c4b71bf8 Fix build and runtime with openssl with SSLv3 disabled.
While there, rename patches.

PR:		206263
Submitted by:	chris chrullrich net
Sponsored by:	Absolight
2016-01-15 16:04:16 +00:00

18 lines
662 B
C

--- plugins/check_ssh.c.orig 2015-07-30 21:40:06 UTC
+++ plugins/check_ssh.c
@@ -252,6 +252,7 @@ ssh_connect (char *haddr, int hport, cha
printf
(_("SSH CRITICAL - %s (protocol %s) version mismatch, expected '%s'\n"),
ssh_server, ssh_proto, remote_version);
+ recv (sd, output, BUFF_SZ, 0);
close(sd);
exit (STATE_CRITICAL);
}
@@ -270,6 +271,7 @@ ssh_connect (char *haddr, int hport, cha
(_("SSH OK - %s (protocol %s) | %s\n"),
ssh_server, ssh_proto, fperfdata("time", elapsed_time, "s",
FALSE, 0, FALSE, 0, TRUE, 0, TRUE, (int)timeout_interval));
+ recv (sd, output, BUFF_SZ, 0);
close(sd);
exit (STATE_OK);
}