LHBM6N011864; Wed, 21 May 2025 17:11:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 54LHBMrt011861; Wed, 21 May 2025 17:11:22 GMT (envelope-from git) Date: Wed, 21 May 2025 17:11:22 GMT Message-Id: <202505211711.54LHBMrt011861@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: ab3daba43e8c - stable/14 - sctp: clear the SCTP_ADDR_VALID flag when removing an address List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: ab3daba43e8cef4cf529dd1a6d2a5db7de0a66a0 Auto-Submitted: auto-generated The branch stable/14 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=ab3daba43e8cef4cf529dd1a6d2a5db7de0a66a0 commit ab3daba43e8cef4cf529dd1a6d2a5db7de0a66a0 Author: Michael Tuexen AuthorDate: 2025-05-04 22:45:01 +0000 Commit: Michael Tuexen CommitDate: 2025-05-21 17:11:03 +0000 sctp: clear the SCTP_ADDR_VALID flag when removing an address This flag is currently not read, therefore the bug had no consequences. (cherry picked from commit 2013c4e0dc73a7c7b05f48726af1a4931686ccef) --- sys/netinet/sctp_pcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index 7b155eed896a..44807733b9e9 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -637,7 +637,7 @@ sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, } } SCTPDBG(SCTP_DEBUG_PCB4, "Deleting ifa %p\n", (void *)sctp_ifap); - sctp_ifap->localifa_flags &= SCTP_ADDR_VALID; + sctp_ifap->localifa_flags &= ~SCTP_ADDR_VALID; /* * We don't set the flag. This means that the structure will * hang around in EP's that have bound specific to it until