diff options
-rw-r--r-- | networking/ntpd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index 130cef0..8ca62cf 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c @@ -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; |