Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 May 2025 22:47:42 GMT
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 2013c4e0dc73 - main - sctp: clear the SCTP_ADDR_VALID flag when removing an address
Message-ID:  <202505042247.544MlgK7000255@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505042247.544MlgK7000255>