PR kern/52681: fix msghdr conversion.
This commit is contained in:
parent
a6bab1a764
commit
9356c11652
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: netbsd32_conv.h,v 1.32 2017/07/31 15:38:01 maxv Exp $ */
|
||||
/* $NetBSD: netbsd32_conv.h,v 1.33 2017/10/31 12:43:56 martin Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998, 2001 Matthew R. Green
|
||||
@ -280,10 +280,10 @@ static __inline void
|
||||
netbsd32_from_msghdr(struct netbsd32_msghdr *mhp32, const struct msghdr *mhp)
|
||||
{
|
||||
|
||||
mhp32->msg_name = mhp32->msg_name;
|
||||
mhp32->msg_namelen = mhp32->msg_namelen;
|
||||
mhp32->msg_iovlen = mhp32->msg_iovlen;
|
||||
mhp32->msg_control = mhp32->msg_control;
|
||||
NETBSD32PTR32(mhp32->msg_name, mhp->msg_name);
|
||||
mhp32->msg_namelen = mhp->msg_namelen;
|
||||
mhp32->msg_iovlen = mhp->msg_iovlen;
|
||||
NETBSD32PTR32(mhp32->msg_control, mhp->msg_control);
|
||||
mhp32->msg_controllen = mhp->msg_controllen;
|
||||
mhp32->msg_flags = mhp->msg_flags;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user