components/ntp/patches/50-noserve.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 18 Nov 2013 23:01:15 -0800
branchs11-update
changeset 2823 4650282513ce
parent 2789 b28fe4d7df32
permissions -rw-r--r--
Added tag s11u2-28 for changeset 5bb54d999aca

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