components/ntp/patches/50-noserve.patch
author Mohana Rao Gorai <mohana.gorai@oracle.com>
Mon, 07 Apr 2014 02:12:01 -0700
branchs11u1-sru
changeset 3051 0bc80ce9fe0f
parent 2795 a8138e69c041
permissions -rw-r--r--
15993811 A help message type in ksh93 displays off by one

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