aboutsummaryrefslogtreecommitdiff
path: root/eperd/ntp.c
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2017-03-04 21:05:37 +0100
committerBjørn Mork <bjorn@mork.no>2017-03-04 21:05:37 +0100
commit8712f3f01a5acaa5426c03fc4510f18985b84b66 (patch)
tree6753dca376d4520648f31fa448cbab4561756d49 /eperd/ntp.c
parent6937c3f2bd8cf40ce8d2f0d3fea37f076e4ce709 (diff)
ripe-atlas-fw: imported version 47504750
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'eperd/ntp.c')
-rw-r--r--eperd/ntp.c12
1 files changed, 9 insertions, 3 deletions
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");