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
-  Lines: 13
 -  Date:
Tue Feb 13 16:57:42 1996
 -  Orig file: 
v1.3.62/linux/net/core/iovec.c
 -  Orig date: 
Wed Nov  8 07:11:45 1995
 
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