ntpd: respond only to client and symmetric active packets
No binary (build failed)
—
(log yok)
| @@ -2051,6 +2051,13 @@ recv_and_process_client_pkt(void /*int fd*/) | |
| goto bail; | |
| } | |
| + | /* Respond only to client and symmetric active packets */ |
| + | if ((msg.m_status & MODE_MASK) != MODE_CLIENT |
| + | && (msg.m_status & MODE_MASK) != MODE_SYM_ACT |
| + | ) { |
| + | goto bail; |
| + | } |
| + | |
| query_status = msg.m_status; | |
| query_xmttime = msg.m_xmttime; | |