From 87baaa77e3d550b2a1d045e9eb6f04c4ee221f36 Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Sat, 5 Aug 2023 11:20:35 +0200 Subject: [PATCH] Do not clear sb_cc when the write side is shutdown --- usrsctplib/netinet/sctp_usrreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/usrsctplib/netinet/sctp_usrreq.c b/usrsctplib/netinet/sctp_usrreq.c index c16f8ff37..d1ebede9f 100755 --- a/usrsctplib/netinet/sctp_usrreq.c +++ b/usrsctplib/netinet/sctp_usrreq.c @@ -1339,7 +1339,6 @@ sctp_flush(struct socket *so, int how) KASSERT(!SOLISTENING(so), ("sctp_flush: called on listening socket %p", so)); #endif - SCTP_SB_CLEAR(so->so_snd); SOCK_UNLOCK(so); } return (0);