Commit f9205c85 authored by Rusty Russell's avatar Rusty Russell Committed by Stephen Hemminger

[NETFILTER]: Trivial 2.6 tftp conntrack fix.

In 2.6, the TFTP conntrack helper returns -1 if the packet is too
short, but that is an invalid return code.  Return NF_ACCEPT
instead.
parent dda5e09f
...@@ -44,7 +44,7 @@ static int tftp_help(struct sk_buff *skb, ...@@ -44,7 +44,7 @@ static int tftp_help(struct sk_buff *skb,
if (skb_copy_bits(skb, skb->nh.iph->ihl * 4 + sizeof(struct udphdr), if (skb_copy_bits(skb, skb->nh.iph->ihl * 4 + sizeof(struct udphdr),
&tftph, sizeof(tftph)) != 0) &tftph, sizeof(tftph)) != 0)
return -1; return NF_ACCEPT;
switch (ntohs(tftph.opcode)) { switch (ntohs(tftph.opcode)) {
/* RRQ and WRQ works the same way */ /* RRQ and WRQ works the same way */
......
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