components/ntp/patches/50-noserve.patch
author Gabriel Carrillo <gabriel.carrillo@oracle.com>
Mon, 25 Nov 2013 14:43:56 -0800
branchs11u1-sru
changeset 2830 3d056f49638d
parent 2795 a8138e69c041
permissions -rw-r--r--
Added tag 0.175.1.13.0.6.0, S11.1SRU13.6 for changeset 663f38ad85e5

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