components/ntp/patches/50-noserve.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 09 Feb 2015 23:03:42 -0800
changeset 3755 7178f0385f7d
parent 1467 f14b6c5766ca
permissions -rw-r--r--
Added tag s12-68 for changeset 59f4c52cf34e

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 */
+		}
 	}
 
 	/*