aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/netinet/sctp_usrreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c
index 51c056e052a5..b847271a7bd3 100644
--- a/sys/netinet/sctp_usrreq.c
+++ b/sys/netinet/sctp_usrreq.c
@@ -874,6 +874,7 @@ sctp_shutdown(struct socket *so, enum shutdown_how how)
/* FALLTHROUGH */
case SHUT_WR:
+ SCTP_INP_RLOCK(inp);
socantsendmore(so);
stcb = LIST_FIRST(&inp->sctp_asoc_list);
if (stcb == NULL) {