patch-2.3.22 linux/net/x25/af_x25.c

Next file: linux/net/x25/x25_in.c
Previous file: linux/net/unix/af_unix.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.21/linux/net/x25/af_x25.c linux/net/x25/af_x25.c
@@ -848,7 +848,11 @@
 	unsigned char *asmptr;
 	int size, qbit = 0;
 
-	if (msg->msg_flags & ~(MSG_DONTWAIT | MSG_OOB))
+	if (msg->msg_flags & ~(MSG_DONTWAIT | MSG_OOB | MSG_EOR))
+		return -EINVAL;
+
+	/* we currently don't support segments at the user interface */ 
+	if (!(msg->msg_flags & MSG_EOR))
 		return -EINVAL;
 
 	if (sk->zapped)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)