mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:35:06 -05:00
ntp: reset ntpdata report on address change
This commit is contained in:
@@ -653,6 +653,7 @@ NCR_ResetPoll(NCR_Instance instance)
|
||||
void
|
||||
NCR_ChangeRemoteAddress(NCR_Instance inst, NTP_Remote_Address *remote_addr)
|
||||
{
|
||||
memset(&inst->report, 0, sizeof (inst->report));
|
||||
NCR_ResetInstance(inst);
|
||||
inst->remote_addr = *remote_addr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user