From dec0d3bfc24d8dc0546cc60ea215ce601f929db0 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 19 Jan 2017 10:03:32 +0100 Subject: [PATCH] ntp: reset ntpdata report on address change --- ntp_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ntp_core.c b/ntp_core.c index 42dff4c..af148b8 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;