Commit 6288df7d authored by Harald Welte's avatar Harald Welte Committed by David S. Miller

net/ipv4/netfilter/ipt_unclean.c: Source port is allowed to be zero.

parent 6ef05c91
......@@ -216,10 +216,9 @@ check_udp(const struct iphdr *iph,
csum_partial((char *)udph, datalen, 0)) != 0)
return 0;
/* CHECK: Ports can't be zero. */
if (!udph->source || !udph->dest) {
limpk("UDP zero ports %u/%u\n",
ntohs(udph->source), ntohs(udph->dest));
/* CHECK: Destination port can't be zero. */
if (!udph->dest) {
limpk("UDP zero destination port\n");
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment