diff options
author | Joonwoo Park <joonwpark81@gmail.com> | 2008-02-20 04:18:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-20 04:18:47 +0300 |
commit | eb1197bc0e20d3ceb450883dbd181460252f0306 (patch) | |
tree | 7d8b568a0d0ccc9b882209c19c7a0e720b77f14b /net/bridge/netfilter/ebt_redirect.c | |
parent | f449b3b54d2263d65a11429050765c325c9809f4 (diff) | |
download | linux-eb1197bc0e20d3ceb450883dbd181460252f0306.tar.xz |
[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/bridge/netfilter/ebt_redirect.c')
-rw-r--r-- | net/bridge/netfilter/ebt_redirect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebt_redirect.c b/net/bridge/netfilter/ebt_redirect.c index bfdf2fb60b1f..bfb9f74e2116 100644 --- a/net/bridge/netfilter/ebt_redirect.c +++ b/net/bridge/netfilter/ebt_redirect.c @@ -21,7 +21,7 @@ static int ebt_target_redirect(struct sk_buff *skb, unsigned int hooknr, { const struct ebt_redirect_info *info = data; - if (skb_make_writable(skb, 0)) + if (!skb_make_writable(skb, 0)) return NF_DROP; if (hooknr != NF_BR_BROUTING) |