patch-2.3.7 linux/net/ipv4/udp.c

Next file: linux/net/netsyms.c
Previous file: linux/net/ipv4/ip_fragment.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.6/linux/net/ipv4/udp.c linux/net/ipv4/udp.c
@@ -655,11 +655,7 @@
 		if (msg->msg_namelen < sizeof(*usin))
 			return(-EINVAL);
 		if (usin->sin_family != AF_INET) {
-			static int complained;
-			if (!complained++)
-				printk(KERN_WARNING "%s forgot to set AF_INET in udp sendmsg. Fix it!\n", current->comm);
-			if (usin->sin_family)
-				return -EINVAL;
+			return -EINVAL;
 		}
 		ufh.daddr = usin->sin_addr.s_addr;
 		ufh.uh.dest = usin->sin_port;

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