aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ntp_client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ntp_client.c b/ntp_client.c
index cd9d5f7..b11683e 100644
--- a/ntp_client.c
+++ b/ntp_client.c
@@ -117,6 +117,7 @@ static void ntp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p,
} else {
state->err = 1;
+ state->ok = 0;
}
pbuf_free(p);
}
@@ -151,6 +152,7 @@ static void ntp_dns_found(const char *hostname,
} else {
debug_print("NTP failed: DNS no address\n");
state->err = 1;
+ state->ok = 0;
}
}