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, ...@@ -216,10 +216,9 @@ check_udp(const struct iphdr *iph,
csum_partial((char *)udph, datalen, 0)) != 0) csum_partial((char *)udph, datalen, 0)) != 0)
return 0; return 0;
/* CHECK: Ports can't be zero. */ /* CHECK: Destination port can't be zero. */
if (!udph->source || !udph->dest) { if (!udph->dest) {
limpk("UDP zero ports %u/%u\n", limpk("UDP zero destination port\n");
ntohs(udph->source), ntohs(udph->dest));
return 0; 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