Browse Source

log dns failures, even if temporary. ok benno

OPENBSD_6_5
tedu 5 years ago
parent
commit
b233898e51
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/usr.sbin/ntpd/ntp.c

+ 2
- 1
src/usr.sbin/ntpd/ntp.c View File

@ -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> * 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; dlen = imsg.hdr.len - IMSG_HEADER_SIZE;
if (dlen == 0) { /* no data -> temp error */ if (dlen == 0) { /* no data -> temp error */
log_warnx("DNS lookup tempfail");
peer->state = STATE_DNS_TEMPFAIL; peer->state = STATE_DNS_TEMPFAIL;
break; break;
} }


Loading…
Cancel
Save