ntp: remove unnecessary check for NULL local timestamp

After 5f4cbaab7e ("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.
This commit is contained in:
Miroslav Lichvar 2023-03-16 17:19:33 +01:00
parent 5160f14fdc
commit a5f1a113f0

View 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);
}
/* ================================================== */