usr/src/cmd/ntpd/Patches/50-noserve.patch
branchoi_151a
changeset 252 600924158051
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/usr/src/cmd/ntpd/Patches/50-noserve.patch	Fri Jan 17 19:32:42 2014 +0000
@@ -0,0 +1,20 @@
+See:
+	http://bugzilla.ntp.org/show_bug.cgi?id=2367
+
+--- ntpd/ntp_proto.c
++++ ntpd/ntp_proto.c
+@@ -429,9 +429,11 @@ receive(
+ 		process_control(rbufp, restrict_mask);
+ 		return;
+ 	}
+-	if (restrict_mask & RES_DONTSERVE) {
+-		sys_restricted++;
+-		return;				/* no time serve */
++	if (hismode == MODE_CLIENT) {
++		if (restrict_mask & RES_DONTSERVE) {
++			sys_restricted++;
++			return;				/* no time serve */
++		}
+ 	}
+ 
+ 	/*