summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorJoonwoo Park <joonwpark81@gmail.com>2008-02-20 02:18:47 +0100
committerDavid S. Miller <davem@davemloft.net>2008-02-20 02:18:47 +0100
commiteb1197bc0e20d3ceb450883dbd181460252f0306 (patch)
tree7d8b568a0d0ccc9b882209c19c7a0e720b77f14b /net/ipv4
parent[NETFILTER]: xt_u32: drop the actually unused variable from u32_match_it (diff)
downloadlinux-eb1197bc0e20d3ceb450883dbd181460252f0306.tar.xz
linux-eb1197bc0e20d3ceb450883dbd181460252f0306.zip
[NETFILTER]: Fix incorrect use of skb_make_writable
http://bugzilla.kernel.org/show_bug.cgi?id=9920 The function skb_make_writable returns true or false. Signed-off-by: Joonwoo Park <joonwpark81@gmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/arpt_mangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/arpt_mangle.c b/net/ipv4/netfilter/arpt_mangle.c
index 45fa4e20094a..3f4222b0a803 100644
--- a/net/ipv4/netfilter/arpt_mangle.c
+++ b/net/ipv4/netfilter/arpt_mangle.c
@@ -19,7 +19,7 @@ target(struct sk_buff *skb,
unsigned char *arpptr;
int pln, hln;
- if (skb_make_writable(skb, skb->len))
+ if (!skb_make_writable(skb, skb->len))
return NF_DROP;
arp = arp_hdr(skb);