Fix missing sizeof().

This commit is contained in:
fengbojiang 2023-09-13 13:12:13 +08:00
parent dc77017216
commit 87d3f2cecd
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ freebsd2linux_cmsghdr(struct linux_msghdr *linux_msg, const struct msghdr *freeb
*linux_optval = *freebsd_optval;
break;
case IP_RECVTTL:
linux_cmsg->cmsg_len = LINUX_CMSG_LEN(int);
linux_cmsg->cmsg_len = LINUX_CMSG_LEN(sizeof(int));
linux_cmsg->cmsg_type = LINUX_IP_TTL;
*(int *)linux_optval = *freebsd_optval;
break;