summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntp_dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ntpd/ntp_dns.c')
-rw-r--r--usr.sbin/ntpd/ntp_dns.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/ntp_dns.c b/usr.sbin/ntpd/ntp_dns.c
index d1670970991..3f9813b644e 100644
--- a/usr.sbin/ntpd/ntp_dns.c
+++ b/usr.sbin/ntpd/ntp_dns.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp_dns.c,v 1.30 2024/11/21 13:10:44 claudio Exp $ */
+/* $OpenBSD: ntp_dns.c,v 1.31 2024/11/21 13:16:07 claudio Exp $ */
/*
* Copyright (c) 2003-2008 Henning Brauer <henning@openbsd.org>
@@ -117,8 +117,7 @@ ntp_dns(struct ntpd_conf *nconf, struct passwd *pw)
}
if (nfds > 0 && (pfd[0].revents & POLLOUT))
- if (imsg_write(ibuf_dns) <= 0 &&
- errno != EAGAIN) {
+ if (imsg_write(ibuf_dns) == -1) {
log_warn("pipe write error (to ntp engine)");
quit_dns = 1;
}