]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: remove unnecessary check for NULL local timestamp
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 16 Mar 2023 16:19:33 +0000 (17:19 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 22 Mar 2023 08:13:53 +0000 (09:13 +0100)
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

index 7462c7b784ed2734bbb076456e27262b728212f6..57bda81997d00b83b5ca257b2def5b4e05b0d3eb 100644 (file)
@@ -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);
 }
 
 /* ================================================== */