git: 2f580cc4c2eb - releng/14.5 - netipsec/xform_ipcomp.c: fix sockaddr type set in ipcomp6_nonexp_encapcheck()

Colin Percival <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a83b51f.1830b.1670ce3e__16370.8659167$1787016502$gmane$org@gitrepo.freebsd.org>
The branch releng/14.5 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=2f580cc4c2ebd9b0b9966ff76a7eade9d813a13a

commit 2f580cc4c2ebd9b0b9966ff76a7eade9d813a13a
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-08-13 23:18:18 +0000
Commit:     Colin Percival <[email protected]>
CommitDate: 2026-08-18 01:27:43 +0000

    netipsec/xform_ipcomp.c: fix sockaddr type set in ipcomp6_nonexp_encapcheck()
    
    Approved by:    re (cperciva)
    
    (cherry picked from commit 01d4e3c1d3ffa14041d8faa3a7a6e6509e73af84)
    (cherry picked from commit 3626363aaed8fa8becbb3c89ba0bbeeea6ae1139)
---
 sys/netipsec/xform_ipcomp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netipsec/xform_ipcomp.c b/sys/netipsec/xform_ipcomp.c
index e8e098437ecc..6b1c88519c23 100644
--- a/sys/netipsec/xform_ipcomp.c
+++ b/sys/netipsec/xform_ipcomp.c
@@ -710,7 +710,7 @@ ipcomp6_nonexp_encapcheck(const struct mbuf *m, int off, int proto,
 		return (0);
 	bzero(&src, sizeof(src));
 	bzero(&dst, sizeof(dst));
-	src.sa.sa_family = dst.sa.sa_family = AF_INET;
+	src.sa.sa_family = dst.sa.sa_family = AF_INET6;
 	src.sin6.sin6_len = dst.sin6.sin6_len = sizeof(struct sockaddr_in6);
 	ip6 = mtod(m, const struct ip6_hdr *);
 	src.sin6.sin6_addr = ip6->ip6_src;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.