diff options
author | 1998-01-03 22:32:53 +0000 | |
---|---|---|
committer | 1998-01-03 22:32:53 +0000 | |
commit | 44801171ed8e1ea42bd5cdeb77d8e900ce716f91 (patch) | |
tree | dbcf59aa33005e0ce332b1d14512744125feadfd /sys/netinet/tcp_usrreq.c | |
parent | more oflows; we should just delete this thing (diff) | |
download | wireguard-openbsd-44801171ed8e1ea42bd5cdeb77d8e900ce716f91.tar.xz wireguard-openbsd-44801171ed8e1ea42bd5cdeb77d8e900ce716f91.zip |
ignore PRU_SHUTDOWN if socket is already shutdown
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 99c02ed1fa1..ea92e00c858 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.12 1997/08/09 23:36:26 millert Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.13 1998/01/03 22:32:53 deraadt Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -257,6 +257,8 @@ tcp_usrreq(so, req, m, nam, control) * Mark the connection as being incapable of further output. */ case PRU_SHUTDOWN: + if (so->so_state & SS_CANTSENDMORE) + break; socantsendmore(so); tp = tcp_usrclosed(tp); if (tp) |