diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-10-02 12:24:04 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-10-02 12:24:04 +0000 |
commit | 6a9403795de4eefa403487759c7195c3fb5a691d (patch) | |
tree | 3df08f1fabc9b59dded573b07328e94bdda54632 | |
parent | e7486ad7d71764c4a0c007c63ca25dd8b7bbe559 (diff) |
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@
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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: |