diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-01-03 22:32:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-01-03 22:32:58 +0000 |
commit | 7eb61845f0adab4db4776e45322f017211dea469 (patch) | |
tree | 5190ca719b2ad053863ad0bbe47b7731fb1e3caa /sys/netinet | |
parent | ddcff0a55d6a279ccc2bc9e6ab06dd4c0b442fb1 (diff) |
ignore PRU_SHUTDOWN if socket is already shutdown
Diffstat (limited to 'sys/netinet')
-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) |