aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2023-08-04 06:32:25 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2024-01-11 12:21:45 +0000
commite47f243218bf62ae2f3ad915d7b8d73893b4b4d6 (patch)
treedceb8e784815983569ed917ff851ae7ba9233a66
parentf141ff9935fde0ab9790a7687605bf3e455d1300 (diff)
downloadsrc-e47f243218bf62ae2f3ad915d7b8d73893b4b4d6.tar.gz
src-e47f243218bf62ae2f3ad915d7b8d73893b4b4d6.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 (cherry picked from commit efb04fb404b240a99c618e49174cd6260217edaa)
-rw-r--r--sys/netinet/sctp_usrreq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c
index bcfc496a132a..10af0c669f04 100644
--- a/sys/netinet/sctp_usrreq.c
+++ b/sys/netinet/sctp_usrreq.c
@@ -848,7 +848,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);