mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 02:25:06 -05:00
local: check offset sanity before accumulation
Don't accept an offset that points to time before 1970 or outside the interval to which is mapped NTP time.
This commit is contained in:
7
cmdmon.c
7
cmdmon.c
@@ -1555,8 +1555,11 @@ handle_manual_delete(CMD_Request *rx_message, CMD_Reply *tx_message)
|
||||
static void
|
||||
handle_make_step(CMD_Request *rx_message, CMD_Reply *tx_message)
|
||||
{
|
||||
LCL_MakeStep();
|
||||
tx_message->status = htons(STT_SUCCESS);
|
||||
if (!LCL_MakeStep()) {
|
||||
tx_message->status = htons(STT_FAILED);
|
||||
} else {
|
||||
tx_message->status = htons(STT_SUCCESS);
|
||||
}
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
Reference in New Issue
Block a user