]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Handle msg_flags correctly - for recvmsg this field is written by the
authorTom Hughes <tom@compton.nu>
Fri, 24 Mar 2006 16:48:19 +0000 (16:48 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 24 Mar 2006 16:48:19 +0000 (16:48 +0000)
kernel not read.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5789

coregrind/m_syswrap/syswrap-generic.c

index 18080b85c78e090da7736e2a383b99616e5111a5..5422e8f99af2971fdc972af8a656a9bfeed98d23 100644 (file)
@@ -752,7 +752,7 @@ void msghdr_foreachfield (
    foreach_func ( tid, True, "(msg)", (Addr)&msg->msg_iovlen, sizeof( msg->msg_iovlen ) );
    foreach_func ( tid, True, "(msg)", (Addr)&msg->msg_control, sizeof( msg->msg_control ) );
    foreach_func ( tid, True, "(msg)", (Addr)&msg->msg_controllen, sizeof( msg->msg_controllen ) );
-   foreach_func ( tid, True, "(msg)", (Addr)&msg->msg_flags, sizeof( msg->msg_flags ) );
+   foreach_func ( tid, False, "(msg)", (Addr)&msg->msg_flags, sizeof( msg->msg_flags ) );
 
    if ( msg->msg_name )
       foreach_func ( tid, False,
@@ -769,7 +769,7 @@ void msghdr_foreachfield (
 
       for ( i = 0; i < msg->msg_iovlen; ++i, ++iov )
          foreach_func ( tid, False,
-                        "(msg.msg_iov[i]", 
+                        "(msg.msg_iov[i])", 
                         (Addr)iov->iov_base, iov->iov_len );
    }