--- ./plugins/check_ssh.c.orig 2014-12-01 00:28:21.000000000 +0200 +++ ./plugins/check_ssh.c 2015-03-17 14:57:35.293673000 +0200 @@ -63,7 +63,7 @@ { int result = STATE_UNKNOWN; - setlocale (LC_ALL, ""); + setlocale (LC_ALL, ""); setlocale(LC_NUMERIC, "C"); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); @@ -255,6 +255,7 @@ 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); } @@ -273,6 +274,7 @@ (_("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); }