ntp: initialize saved TX timestamp
Zero the initial TX timestamp which is saved for the interleaved
mode in case there is no previous timestamp saved in clientlog and
transmit_packet() does not generate a new one (e.g. due to failure in
authentication).
Fixes: 5f4cbaab7e
("ntp: optimize detection of clients using interleaved mode")
This commit is contained in:
parent
1fb60f8db8
commit
c5dde9b66a
1 changed files with 1 additions and 0 deletions
|
@ -2129,6 +2129,7 @@ NCR_ProcessRxUnknown(NTP_Remote_Address *remote_addr, NTP_Local_Address *local_a
|
||||||
UTI_CompareNtp64(&message->receive_ts, &message->transmit_ts) != 0) {
|
UTI_CompareNtp64(&message->receive_ts, &message->transmit_ts) != 0) {
|
||||||
ntp_rx = message->originate_ts;
|
ntp_rx = message->originate_ts;
|
||||||
local_ntp_rx = &ntp_rx;
|
local_ntp_rx = &ntp_rx;
|
||||||
|
UTI_ZeroTimespec(&local_tx.ts);
|
||||||
interleaved = CLG_GetNtpTxTimestamp(&ntp_rx, &local_tx.ts);
|
interleaved = CLG_GetNtpTxTimestamp(&ntp_rx, &local_tx.ts);
|
||||||
|
|
||||||
tx_ts = &local_tx;
|
tx_ts = &local_tx;
|
||||||
|
|
Loading…
Reference in a new issue