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
- Lines: 13
- Date:
Wed Jun 16 19:26:27 1999
- Orig file:
v2.3.6/linux/net/ipv4/udp.c
- Orig date:
Wed Jun 9 14:45:37 1999
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)