diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2009-06-17 11:52:55 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2009-06-17 11:52:55 +0000 |
commit | 54d1ac96e22c710154e3d0392706564a022ecaf7 (patch) | |
tree | f1ba91181857c38bb45d5f465bde9f1822322703 | |
parent | 0e06e031854a64208d534dcb7355b0230bb6aeb6 (diff) |
ENOPROTOOPT is non-fatal on recvfrom, can apparently happen with ipvshit
-rw-r--r-- | usr.sbin/ntpd/client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c index 7e7a71af01c..93b0ff1758a 100644 --- a/usr.sbin/ntpd/client.c +++ b/usr.sbin/ntpd/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.86 2009/05/31 01:27:30 henning Exp $ */ +/* $OpenBSD: client.c,v 1.87 2009/06/17 11:52:54 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -222,7 +222,8 @@ client_dispatch(struct ntp_peer *p, u_int8_t settime) if ((size = recvmsg(p->query->fd, &somsg, 0)) == -1) { if (errno == EHOSTUNREACH || errno == EHOSTDOWN || errno == ENETUNREACH || errno == ENETDOWN || - errno == ECONNREFUSED || errno == EADDRNOTAVAIL) { + errno == ECONNREFUSED || errno == EADDRNOTAVAIL || + errno == ENOPROTOOPT) { client_log_error(p, "recvmsg", errno); set_next(p, error_interval()); return (0); |