summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-09-30 10:19:44 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-09-30 10:19:44 +0000
commit2cf41bf16858d2b8e1404bc7227aee8cf5c5f9e4 (patch)
tree923d0bd8893b32f70222531376286495498c37e2 /usr.sbin
parent28919df56b96211147682105e6ffdf23cc98f4c7 (diff)
now that we connect() the client sockets we need to handle ECONNREFUSED as
non-fatal too, from camield@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ntpd/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c
index fa6f84d2e3d..4b0e9c2e2ed 100644
--- a/usr.sbin/ntpd/client.c
+++ b/usr.sbin/ntpd/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.35 2004/09/24 14:51:16 henning Exp $ */
+/* $OpenBSD: client.c,v 1.36 2004/09/30 10:19:43 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -174,7 +174,7 @@ client_dispatch(struct ntp_peer *p, u_int8_t settime)
if ((size = recvfrom(p->query->fd, &buf, sizeof(buf), 0,
NULL, NULL)) == -1) {
if (errno == EHOSTUNREACH || errno == EHOSTDOWN ||
- errno == ENETDOWN) {
+ errno == ENETDOWN || errno == ECONNREFUSED) {
log_warn("recvfrom %s",
log_sockaddr((struct sockaddr *)&p->addr->ss));
return (0);