Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/netbsd32 PR kern/52681: fix msghdr conversion.



details:   https://anonhg.NetBSD.org/src/rev/6df8c1dc1893
branches:  trunk
changeset: 827512:6df8c1dc1893
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Oct 31 12:43:56 2017 +0000

description:
PR kern/52681: fix msghdr conversion.

diffstat:

 sys/compat/netbsd32/netbsd32_conv.h |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (24 lines):

diff -r 6c7a5808374a -r 6df8c1dc1893 sys/compat/netbsd32/netbsd32_conv.h
--- a/sys/compat/netbsd32/netbsd32_conv.h       Tue Oct 31 12:37:23 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_conv.h       Tue Oct 31 12:43:56 2017 +0000
@@ -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 @@
 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;
 }



Home | Main Index | Thread Index | Old Index