Blob Blame History Raw
diff -up ntp-4.2.6p5/ntpd/ntp_proto.c.monwarn ntp-4.2.6p5/ntpd/ntp_proto.c
--- ntp-4.2.6p5/ntpd/ntp_proto.c.monwarn	2014-07-03 18:03:37.985020147 +0200
+++ ntp-4.2.6p5/ntpd/ntp_proto.c	2014-07-03 18:06:08.656380757 +0200
@@ -3701,8 +3701,12 @@ proto_config(
 	case PROTO_MONITOR:	/* monitoring (monitor) */
 		if (value)
 			mon_start(MON_ON);
-		else
+		else {
 			mon_stop(MON_ON);
+			if (mon_enabled)
+				msyslog(LOG_WARNING,
+					"monitor cannot be disabled with limited restrict");
+		}
 		break;
 
 	case PROTO_NTP:		/* NTP discipline (ntp) */