Date: Tue, 2 Mar 2021 12:55:18 GMT From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 04c13928d9f3 - stable/13 - sctp: clear a pointer to a net which will be removed Message-ID: <202103021255.122CtI3R051657@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=04c13928d9f306a7d7ac34452644a538d2be6fdc commit 04c13928d9f306a7d7ac34452644a538d2be6fdc Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2021-02-21 12:03:57 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2021-03-02 12:31:35 +0000 sctp: clear a pointer to a net which will be removed (cherry picked from commit 5ac839029d01c0f48e1b1ff1a599cb47cf5e98ee) --- 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103021255.122CtI3R051657>