diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2021-09-09 16:01:35 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2021-09-09 16:01:35 +0000 |
commit | 0c1a20beb4560eaae69202bc49026ab9e2a677a4 (patch) | |
tree | d238aab62fa90b9a66991b34edfed5fb873160ee | |
parent | 635eb7ac7990a2bb29e1992b739617a9db012bf2 (diff) | |
download | src-0c1a20beb4560eaae69202bc49026ab9e2a677a4.tar.gz src-0c1a20beb4560eaae69202bc49026ab9e2a677a4.zip |
sctp: use appropriate argument when freeing association
Reported by: syzbot+7fe26e26911344e7211d@syzkaller.appspotmail.com
MFC after: 3 days
-rw-r--r-- | sys/netinet/sctp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c index 24c6879e1925..6ae35ae2deba 100644 --- a/sys/netinet/sctp_output.c +++ b/sys/netinet/sctp_output.c @@ -12757,7 +12757,7 @@ sctp_lower_sosend(struct socket *so, if (control) { if (sctp_process_cmsgs_for_init(stcb, control, &error)) { - sctp_free_assoc(inp, stcb, SCTP_PCBFREE_FORCE, + sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, SCTP_FROM_SCTP_OUTPUT + SCTP_LOC_6); hold_tcblock = 0; stcb = NULL; |