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/netiso/tuba_usrreq.c | |
parent | ddcff0a55d6a279ccc2bc9e6ab06dd4c0b442fb1 (diff) |
ignore PRU_SHUTDOWN if socket is already shutdown
Diffstat (limited to 'sys/netiso/tuba_usrreq.c')
-rw-r--r-- | sys/netiso/tuba_usrreq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netiso/tuba_usrreq.c b/sys/netiso/tuba_usrreq.c index 0fc605cdea5..bd9a74a0e5a 100644 --- a/sys/netiso/tuba_usrreq.c +++ b/sys/netiso/tuba_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tuba_usrreq.c,v 1.2 1996/03/04 10:36:54 mickey Exp $ */ +/* $OpenBSD: tuba_usrreq.c,v 1.3 1998/01/03 22:32:56 deraadt Exp $ */ /* $NetBSD: tuba_usrreq.c,v 1.8 1996/02/13 22:12:40 christos Exp $ */ /* @@ -267,6 +267,8 @@ tuba_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) |