git: cd5c35f504f5 - stable/15 - netipsec/xform_ipcomp.c: fix sockaddr type set in ipcomp6_nonexp_encapcheck()

Konstantin Belousov <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a812482.44ba5.2fd5ec8b__7735.25304846174$1786848469$gmane$org@gitrepo.freebsd.org>
The branch stable/15 has been updated by kib:

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

commit cd5c35f504f550e5e94f172cbe154d49f36c241c
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-08-13 23:18:18 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-08-16 02:41:18 +0000

    netipsec/xform_ipcomp.c: fix sockaddr type set in ipcomp6_nonexp_encapcheck()
    
    (cherry picked from commit 01d4e3c1d3ffa14041d8faa3a7a6e6509e73af84)
---
 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 61fb9413a01a..4787f9b09bb4 100644
--- a/sys/netipsec/xform_ipcomp.c
+++ b/sys/netipsec/xform_ipcomp.c
@@ -722,7 +722,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.