git: 0c1a20beb456 - main - sctp: use appropriate argument when freeing association

Michael Tuexen tuexen at FreeBSD.org
Thu Sep 9 16:04:05 UTC 2021


The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=0c1a20beb4560eaae69202bc49026ab9e2a677a4

commit 0c1a20beb4560eaae69202bc49026ab9e2a677a4
Author:     Michael Tuexen <tuexen at FreeBSD.org>
AuthorDate: 2021-09-09 16:01:35 +0000
Commit:     Michael Tuexen <tuexen at FreeBSD.org>
CommitDate: 2021-09-09 16:01:35 +0000

    sctp: use appropriate argument when freeing association
    
    Reported by:    syzbot+7fe26e26911344e7211d at syzkaller.appspotmail.com
    MFC after:      3 days
---
 sys/netinet/sctp_output.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;


More information about the dev-commits-src-main mailing list