branch | s11-update |
changeset 2789 | b28fe4d7df32 |
2788:5d4a0834a077 | 2789:b28fe4d7df32 |
---|---|
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 /* |