summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2019-01-07 20:33:40 +0000
committertedu <tedu@openbsd.org>2019-01-07 20:33:40 +0000
commit2f2d56696c77f7914df070221510d01087ed0b0e (patch)
tree03fa78998f08942dbbc31696ff7d9622a1d8563f
parentEnabling both kcov and retguard is now possible due to the recent bump of (diff)
downloadwireguard-openbsd-2f2d56696c77f7914df070221510d01087ed0b0e.tar.xz
wireguard-openbsd-2f2d56696c77f7914df070221510d01087ed0b0e.zip
log dns failures, even if temporary. ok benno
-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;
}