summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2019-01-07 20:33:41 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2019-01-07 20:33:41 +0000
commit0555b9270b62a384d220dad75c726e7679db376d (patch)
treee70a2495eee727d0a10691c411481d59d3222e7d /usr.sbin
parent96895511fdc861bf5f774c7ddaaf1014af7277db (diff)
log dns failures, even if temporary. ok benno
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ntpd/ntp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c
index f48bd3cee1b..9893d9e2fc6 100644
--- a/usr.sbin/ntpd/ntp.c
+++ b/usr.sbin/ntpd/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.148 2018/07/19 10:20:09 sthen Exp $ */
+/* $OpenBSD: ntp.c,v 1.149 2019/01/07 20:33:40 tedu Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -506,6 +506,7 @@ ntp_dispatch_imsg_dns(void)
dlen = imsg.hdr.len - IMSG_HEADER_SIZE;
if (dlen == 0) { /* no data -> temp error */
+ log_warnx("DNS lookup tempfail");
peer->state = STATE_DNS_TEMPFAIL;
break;
}