diff options
-rw-r--r-- | net/ipv4/netfilter/nf_nat_tftp.c | 2 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_tftp.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/nf_nat_tftp.c b/net/ipv4/netfilter/nf_nat_tftp.c index 1360a94766dd..b096e81500ae 100644 --- a/net/ipv4/netfilter/nf_nat_tftp.c +++ b/net/ipv4/netfilter/nf_nat_tftp.c | |||
@@ -24,7 +24,7 @@ static unsigned int help(struct sk_buff *skb, | |||
24 | enum ip_conntrack_info ctinfo, | 24 | enum ip_conntrack_info ctinfo, |
25 | struct nf_conntrack_expect *exp) | 25 | struct nf_conntrack_expect *exp) |
26 | { | 26 | { |
27 | struct nf_conn *ct = exp->master; | 27 | const struct nf_conn *ct = exp->master; |
28 | 28 | ||
29 | exp->saved_proto.udp.port | 29 | exp->saved_proto.udp.port |
30 | = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port; | 30 | = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port; |
diff --git a/net/netfilter/nf_conntrack_tftp.c b/net/netfilter/nf_conntrack_tftp.c index 176f769d3072..bd2e800f23cc 100644 --- a/net/netfilter/nf_conntrack_tftp.c +++ b/net/netfilter/nf_conntrack_tftp.c | |||
@@ -39,7 +39,8 @@ static int tftp_help(struct sk_buff *skb, | |||
39 | struct nf_conn *ct, | 39 | struct nf_conn *ct, |
40 | enum ip_conntrack_info ctinfo) | 40 | enum ip_conntrack_info ctinfo) |
41 | { | 41 | { |
42 | struct tftphdr _tftph, *tfh; | 42 | const struct tftphdr *tfh; |
43 | struct tftphdr _tftph; | ||
43 | struct nf_conntrack_expect *exp; | 44 | struct nf_conntrack_expect *exp; |
44 | struct nf_conntrack_tuple *tuple; | 45 | struct nf_conntrack_tuple *tuple; |
45 | unsigned int ret = NF_ACCEPT; | 46 | unsigned int ret = NF_ACCEPT; |