git: 5ac839029d01 - main - sctp: clear a pointer to a net which will be removed

Michael Tuexen tuexen at FreeBSD.org
Sun Feb 21 12:52:17 UTC 2021


The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=5ac839029d01c0f48e1b1ff1a599cb47cf5e98ee

commit 5ac839029d01c0f48e1b1ff1a599cb47cf5e98ee
Author:     Michael Tuexen <tuexen at FreeBSD.org>
AuthorDate: 2021-02-21 12:03:57 +0000
Commit:     Michael Tuexen <tuexen at FreeBSD.org>
CommitDate: 2021-02-21 12:06:05 +0000

    sctp: clear a pointer to a net which will be removed
    
    MFC after:      3 days
---
 sys/netinet/sctp_pcb.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c
index 2e082570cfc1..4d09ad3a7353 100644
--- a/sys/netinet/sctp_pcb.c
+++ b/sys/netinet/sctp_pcb.c
@@ -4443,6 +4443,10 @@ out:
 		/* Clear net */
 		asoc->last_control_chunk_from = NULL;
 	}
+	if (net == asoc->last_net_cmt_send_started) {
+		/* Clear net */
+		asoc->last_net_cmt_send_started = NULL;
+	}
 	if (net == stcb->asoc.alternate) {
 		sctp_free_remote_addr(stcb->asoc.alternate);
 		stcb->asoc.alternate = NULL;


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