From 7eb61845f0adab4db4776e45322f017211dea469 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 3 Jan 1998 22:32:58 +0000 Subject: ignore PRU_SHUTDOWN if socket is already shutdown --- sys/netinet/tcp_usrreq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/netinet') 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) -- cgit v1.2.3