git: 2013c4e0dc73 - main - sctp: clear the SCTP_ADDR_VALID flag when removing an address

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Sun, 04 May 2025 22:47:42 UTC
The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=2013c4e0dc73a7c7b05f48726af1a4931686ccef

commit 2013c4e0dc73a7c7b05f48726af1a4931686ccef
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-05-04 22:45:01 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-05-04 22:47:36 +0000

    sctp: clear the SCTP_ADDR_VALID flag when removing an address
    
    This flag is currently not read, therefore the bug had no
    consequences.
    
    MFC after:      3 days
---
 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 13d3b0a332f9..224f9c72d9ae 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