ntp: reset ntpdata report on address change
This commit is contained in:
parent
cd84c99e70
commit
dec0d3bfc2
1 changed files with 1 additions and 0 deletions
|
@ -653,6 +653,7 @@ NCR_ResetPoll(NCR_Instance instance)
|
||||||
void
|
void
|
||||||
NCR_ChangeRemoteAddress(NCR_Instance inst, NTP_Remote_Address *remote_addr)
|
NCR_ChangeRemoteAddress(NCR_Instance inst, NTP_Remote_Address *remote_addr)
|
||||||
{
|
{
|
||||||
|
memset(&inst->report, 0, sizeof (inst->report));
|
||||||
NCR_ResetInstance(inst);
|
NCR_ResetInstance(inst);
|
||||||
inst->remote_addr = *remote_addr;
|
inst->remote_addr = *remote_addr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue