Explorar el Código

check_ntp_peer requires newline when there is a socket timeout

Fix for issue #252
John C. Frickson hace 9 años
padre
commit
60dad1471b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      plugins/netutils.c

+ 2 - 2
plugins/netutils.c

@@ -42,8 +42,8 @@ int address_family = AF_INET;
 void
 socket_timeout_alarm_handler (int sig)
 {
-	const char msg1[] = " - Socket timeout";
-	const char msg2[] = " - Abnormal timeout";
+	const char msg1[] = " - Socket timeout\n";
+	const char msg2[] = " - Abnormal timeout\n";
 	switch(timeout_state) {
 		case STATE_OK:
 			write(STDOUT_FILENO, "OK", 2);