Browse Source

now that we connect() the client sockets we need to handle ECONNREFUSED as

non-fatal too, from camield@
OPENBSD_3_7
henning 20 years ago
parent
commit
c25a5d5725
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/usr.sbin/ntpd/client.c

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

@ -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);


Loading…
Cancel
Save