]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: reset ntpdata report on address change
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 19 Jan 2017 09:03:32 +0000 (10:03 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 23 Jan 2017 14:58:55 +0000 (15:58 +0100)
ntp_core.c

index 42dff4c849e458fbfafeb717f1d2e0c1b0dcb623..af148b817fb08c4d66f04cb3232eee8f901f7516 100644 (file)
@@ -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;