Browse Source

EADDRNOTAVAIL after connect is one of the soft errors where we don't abort

too. from amandal@entrisphere.com
OPENBSD_4_1
henning 18 years ago
parent
commit
8031d5c7e5
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.70 2006/06/07 06:29:03 otto Exp $ */
/* $OpenBSD: client.c,v 1.71 2006/10/21 07:18:57 henning Exp $ */
/* /*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -133,7 +133,7 @@ client_query(struct ntp_peer *p)
fatal("client_query socket"); fatal("client_query socket");
if (connect(p->query->fd, sa, SA_LEN(sa)) == -1) { if (connect(p->query->fd, sa, SA_LEN(sa)) == -1) {
if (errno == ECONNREFUSED || errno == ENETUNREACH || if (errno == ECONNREFUSED || errno == ENETUNREACH ||
errno == EHOSTUNREACH) {
errno == EHOSTUNREACH || errno == EADDRNOTAVAIL) {
client_nextaddr(p); client_nextaddr(p);
set_next(p, error_interval()); set_next(p, error_interval());
return (-1); return (-1);


Loading…
Cancel
Save