From a5f1a113f0d5b2430323c61a71c57e51f7145f5e Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 16 Mar 2023 17:19:33 +0100 Subject: [PATCH] ntp: remove unnecessary check for NULL local timestamp After 5f4cbaab7e0e ("ntp: optimize detection of clients using interleaved mode") the local TX timestamp is saved for all requests indicating interleaved mode even when no previous RX timestamp is found. --- ntp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntp_core.c b/ntp_core.c index 7462c7b..57bda81 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -2500,7 +2500,7 @@ NCR_ProcessRxUnknown(NTP_Remote_Address *remote_addr, NTP_Local_Address *local_a return; if (local_ntp_rx) - CLG_SaveNtpTimestamps(local_ntp_rx, tx_ts ? &tx_ts->ts : NULL); + CLG_SaveNtpTimestamps(local_ntp_rx, &tx_ts->ts); } /* ================================================== */