Explorar o código

check_ntp_peer requires newline when there is a socket timeout

Fix for issue #252
John C. Frickson %!s(int64=9) %!d(string=hai) anos
pai
achega
60dad1471b
Modificáronse 1 ficheiros con 2 adicións e 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);