[monitoring-plugins] check_ssh: Reverting a387120

Jan Wagner git at monitoring-plugins.org
Mon Feb 17 12:40:07 CET 2014


 Module: monitoring-plugins
 Branch: master
 Commit: 4f5e20187f1832fce1627c12b9331a05f9dda390
 Author: Jan Wagner <waja at cyconet.org>
   Date: Mon Feb 17 12:18:17 2014 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=4f5e201

check_ssh: Reverting a387120

This seems to result into more problems in the wild then before 'fixing' it

Closes Debian #739254
Reopen Debian #734811

---

 plugins/check_ssh.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index 5c75d27..f4522e2 100644
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
@@ -250,7 +250,6 @@ ssh_connect (char *haddr, int hport, char *remote_version)
 			printf
 				(_("SSH WARNING - %s (protocol %s) version mismatch, expected '%s'\n"),
 				 ssh_server, ssh_proto, remote_version);
-			recv (sd, output, BUFF_SZ, 0);
 			close(sd);
 			exit (STATE_WARNING);
 		}
@@ -261,7 +260,6 @@ ssh_connect (char *haddr, int hport, char *remote_version)
 			(_("SSH OK - %s (protocol %s) | %s\n"),
 			 ssh_server, ssh_proto, fperfdata("time", elapsed_time, "s",
 			 FALSE, 0, FALSE, 0, TRUE, 0, TRUE, (int)socket_timeout));
-		recv (sd, output, BUFF_SZ, 0);
 		close(sd);
 		exit (STATE_OK);
 	}



More information about the Commits mailing list