aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2021-02-21 12:03:57 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2021-02-21 12:06:05 +0000
commit5ac839029d01c0f48e1b1ff1a599cb47cf5e98ee (patch)
treeaf55f581caa2ab445268f23475800b3fab74c36e
parent8b7239681e27ab75175c45c48e6ad1685571b1f2 (diff)
downloadsrc-5ac839029d01c0f48e1b1ff1a599cb47cf5e98ee.tar.gz
src-5ac839029d01c0f48e1b1ff1a599cb47cf5e98ee.zip
sctp: clear a pointer to a net which will be removed
MFC after: 3 days
-rw-r--r--sys/netinet/sctp_pcb.c4
1 files changed, 4 insertions, 0 deletions
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;