diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2023-08-04 06:32:25 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2023-08-04 06:32:25 +0000 |
commit | efb04fb404b240a99c618e49174cd6260217edaa (patch) | |
tree | a9d2016e47ca38f52d265f1cf6253ac945641e24 | |
parent | ccdb28275db7c94ffdafc542d9e29fd43f51f39b (diff) | |
download | src-efb04fb404b240a99c618e49174cd6260217edaa.tar.gz src-efb04fb404b240a99c618e49174cd6260217edaa.zip |
sctp: improve consistency of acc and ccc handling in snd buffer
Don't clear the counters for the socket snd buffer when
shutdown(..., SHUT_WR) or shutdown(..., SHUT_RDWR) is called.
This was causing the system to panic() when SCTP pf tests were
running.
Reported by: dchagin, kp
MFC after: 1 week
-rw-r--r-- | sys/netinet/sctp_usrreq.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c index d603ef5efcd6..aa957ffa9f96 100644 --- a/sys/netinet/sctp_usrreq.c +++ b/sys/netinet/sctp_usrreq.c @@ -838,7 +838,6 @@ sctp_flush(struct socket *so, int how) SOCK_LOCK(so); KASSERT(!SOLISTENING(so), ("sctp_flush: called on listening socket %p", so)); - SCTP_SB_CLEAR(so->so_snd); SOCK_UNLOCK(so); } return (0); |