components/ntp/patches/50-noserve.patch
changeset 1467 f14b6c5766ca
equal deleted inserted replaced
1466:24d2be32f88c 1467:f14b6c5766ca
       
     1 See:
       
     2 	http://bugzilla.ntp.org/show_bug.cgi?id=2367
       
     3 
       
     4 --- ntpd/ntp_proto.c
       
     5 +++ ntpd/ntp_proto.c
       
     6 @@ -429,9 +429,11 @@ receive(
       
     7  		process_control(rbufp, restrict_mask);
       
     8  		return;
       
     9  	}
       
    10 -	if (restrict_mask & RES_DONTSERVE) {
       
    11 -		sys_restricted++;
       
    12 -		return;				/* no time serve */
       
    13 +	if (hismode == MODE_CLIENT) {
       
    14 +		if (restrict_mask & RES_DONTSERVE) {
       
    15 +			sys_restricted++;
       
    16 +			return;				/* no time serve */
       
    17 +		}
       
    18  	}
       
    19  
       
    20  	/*