From: Miroslav Lichvar Date: Thu, 19 Jan 2017 09:03:32 +0000 (+0100) Subject: ntp: reset ntpdata report on address change X-Git-Tag: 3.1-pre1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dec0d3bfc24d8dc0546cc60ea215ce601f929db0;p=thirdparty%2Fchrony.git ntp: reset ntpdata report on address change --- diff --git a/ntp_core.c b/ntp_core.c index 42dff4c8..af148b81 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -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;