From 6a9403795de4eefa403487759c7195c3fb5a691d Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Mon, 2 Oct 2017 12:24:04 +0000 Subject: Also ignore "Can't assign requested address" error when sendto(2) to UDP loghost fails. Otherwise syslogd(8) would no longer send to this destination after the error occured once. tested by Rivo Nurges; OK millert@ benno@ deraadt@ --- usr.sbin/syslogd/syslogd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index a5f68895aa1..b43d93ac2c8 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.c,v 1.249 2017/09/27 15:09:48 bluhm Exp $ */ +/* $OpenBSD: syslogd.c,v 1.250 2017/10/02 12:24:03 bluhm Exp $ */ /* * Copyright (c) 1983, 1988, 1993, 1994 @@ -1957,6 +1957,7 @@ fprintlog(struct filed *f, int flags, char *msg) (struct sockaddr *)&f->f_un.f_forw.f_addr, f->f_un.f_forw.f_addr.ss_len) != l) { switch (errno) { + case EADDRNOTAVAIL: case EHOSTDOWN: case EHOSTUNREACH: case ENETDOWN: -- cgit v1.2.3