components/ntp/patches/50-noserve.patch
author Geoffrey Gardella <geoffrey.gardella@oracle.com>
Thu, 14 Jan 2016 11:26:28 -0800
changeset 5273 3ae19990a6f8
parent 1467 f14b6c5766ca
permissions -rw-r--r--
22541240 augeas doesn't build on s12-89

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