From f99b2f633b989ba7b8edc500d2ea8985979a8de7 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 27 Feb 2023 15:29:44 +0100 Subject: [PATCH] ntp: count missing samples when waiting for NTS-KE Count missing samples for the median filter when NAU_PrepareRequestAuth() is failing. Fixes: 4234732b0883 ("ntp: rework filter option to count missing samples") --- ntp_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ntp_core.c b/ntp_core.c index 3f7bbd3..2bd0104 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -1311,6 +1311,8 @@ transmit_timeout(void *arg) if (!NAU_PrepareRequestAuth(inst->auth)) { SRC_UpdateReachability(inst->source, 0); restart_timeout(inst, get_transmit_delay(inst, 1, 0.0)); + /* Count missing samples for the sample filter */ + process_sample(inst, NULL); return; }