patch-1.3.63 linux/net/core/iovec.c

Next file: linux/net/core/skbuff.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.62/linux/net/core/iovec.c linux/net/core/iovec.c
@@ -33,9 +33,10 @@
 	
 	if(m->msg_name!=NULL)
 	{
-		if(mode==VERIFY_READ)
+		if(mode==VERIFY_READ) {
 			err=move_addr_to_kernel(m->msg_name, m->msg_namelen, address);
-		else
+			m->msg_name = address;
+		} else
 			err=verify_area(mode, m->msg_name, m->msg_namelen);
 		if(err<0)
 			return err;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this