diff options
| author | 2018-11-10 18:40:34 +0000 | |
|---|---|---|
| committer | 2018-11-10 18:40:34 +0000 | |
| commit | 097c9a817ed3c922715a57712d17587de29d5136 (patch) | |
| tree | 2ed9e889e30a3806fd91aaba1ae6c513beff9b15 /sys/netinet/tcp_output.c | |
| parent | Eliminate single use variables 'tickstop' that confuse ticking and (diff) | |
| download | wireguard-openbsd-097c9a817ed3c922715a57712d17587de29d5136.tar.xz wireguard-openbsd-097c9a817ed3c922715a57712d17587de29d5136.zip | |
Do not translate the EACCES error from pf(4) to EHOSTUNREACH anymore.
It also translated a documented send(2) EACCES case erroneously.
This was too much magic and always prone to errors.
from Jan Klemkow; man page jmc@; OK claudio@
Diffstat (limited to 'sys/netinet/tcp_output.c')
| -rw-r--r-- | sys/netinet/tcp_output.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index ea25d06c7e9..27a8739081c 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_output.c,v 1.127 2018/11/09 14:14:31 claudio Exp $ */ +/* $OpenBSD: tcp_output.c,v 1.128 2018/11/10 18:40:34 bluhm Exp $ */ /* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */ /* @@ -1084,8 +1084,6 @@ out: tcp_mtudisc(tp->t_inpcb, -1); return (0); } - if (error == EACCES) /* translate pf(4) error for userland */ - error = EHOSTUNREACH; if ((error == EHOSTUNREACH || error == ENETDOWN) && TCPS_HAVERCVDSYN(tp->t_state)) { tp->t_softerror = error; |
