git: 01d4e3c1d3ff - main - 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 <6a7f27d0.3dc98.4d274ca1__49125.8636511461$1786718206$gmane$org@gitrepo.freebsd.org>
The branch main has been updated by kib:

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

commit 01d4e3c1d3ffa14041d8faa3a7a6e6509e73af84
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-08-13 23:18:18 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-08-14 14:35:38 +0000

    netipsec/xform_ipcomp.c: fix sockaddr type set in ipcomp6_nonexp_encapcheck()
    
    Noted and reviewed by:  markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D58646
---
 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.