Преглед на файлове

check_ssh: Reverting a387120

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

Closes Debian #739254
Reopen Debian #734811
Jan Wagner преди 12 години
родител
ревизия
35146507b3
променени са 1 файла, в които са добавени 0 реда и са изтрити 2 реда
  1. 0 2
      plugins/check_ssh.c

+ 0 - 2
plugins/check_ssh.c

@@ -255,7 +255,6 @@ ssh_connect (char *haddr, int hport, char *remote_version, char *remote_protocol
 			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);
 		}
@@ -274,7 +273,6 @@ ssh_connect (char *haddr, int hport, char *remote_version, char *remote_protocol
 			(_("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);
 	}