Commit 0a80568f authored by Harald Welte's avatar Harald Welte Committed by David S. Miller

[NETFILTER]: ip_nat_snmp call skb_make_writable()

The snmp helper needs an explicit call to skb_ip_make_writable.
Please apply.
Signed-off-by: default avatarJames Morris <jmorris@redhat.com>
Signed-off-by: default avatarHarald Welte <laforge@netfilter.org>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent 1fcedc2b
......@@ -1252,6 +1252,9 @@ static unsigned int nat_help(struct ip_conntrack *ct,
int dir = CTINFO2DIR(ctinfo);
struct iphdr *iph = (*pskb)->nh.iph;
struct udphdr *udph = (struct udphdr *)((u_int32_t *)iph + iph->ihl);
if (!skb_ip_make_writable(pskb, (*pskb)->len))
return NF_DROP;
spin_lock_bh(&snmp_lock);
......
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