From 8712f3f01a5acaa5426c03fc4510f18985b84b66 Mon Sep 17 00:00:00 2001 From: Bjørn Mork Date: Sat, 4 Mar 2017 21:05:37 +0100 Subject: ripe-atlas-fw: imported version 4750 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bjørn Mork --- eperd/ntp.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'eperd/ntp.c') diff --git a/eperd/ntp.c b/eperd/ntp.c index fb788c2..c1d509a 100644 --- a/eperd/ntp.c +++ b/eperd/ntp.c @@ -1830,12 +1830,11 @@ static void traceroute_start2(void *state) ntpstate= state; - if (ntpstate->busy) + if (!ntpstate->busy) { - printf("ntp_start: busy, can't start\n"); + printf("ntp_start: not busy, can't continue\n"); return; } - ntpstate->busy= 1; ntpstate->min= ULONG_MAX; ntpstate->max= 0; @@ -2070,6 +2069,13 @@ static void ntp_start(void *state) ntpstate= state; + if (ntpstate->busy) + { + printf("ntp_start: busy, can't start\n"); + return; + } + ntpstate->busy= 1; + if (ntpstate->response_out) { ntpstate->resp_file_out= fopen(ntpstate->response_out, "w"); -- cgit v1.2.3