]> git.feebdaed.xyz Git - 0xmirror/f-stack.git/commitdiff
fix a build error.
authorfengbojiang <fengbojiang@tencent.com>
Tue, 16 Sep 2025 10:08:13 +0000 (18:08 +0800)
committerfengbojiang <fengbojiang@tencent.com>
Tue, 16 Sep 2025 10:08:13 +0000 (18:08 +0800)
lib/ff_syscall_wrapper.c

index 7bc02840ae310ba93119de21271c38c3caf0667c..df85b5b2fd3f8ee37f4c7e62198855d935cac8ab 100644 (file)
@@ -813,7 +813,7 @@ linux2freebsd_cmsg(const struct linux_msghdr *linux_msg, struct msghdr *freebsd_
                 switch (linux_cmsg->cmsg_type) {
                     case LINUX_IPV6_PKTINFO:
                         freebsd_cmsg->cmsg_type = IPV6_PKTINFO;
-                        *freebsd_optval = *(struct in6_pktinfo *)linux_optval;
+                        *(struct in6_pktinfo *)freebsd_optval = *(struct in6_pktinfo *)linux_optval;
                         break;
                     default:
                         memcpy(freebsd_optval, linux_optval, linux_cmsg->cmsg_len - sizeof(struct linux_cmsghdr));