summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJulian Anastasov <ja@ssi.bg>2011-08-05 02:36:28 +0200
committerDavid S. Miller <davem@davemloft.net>2011-08-08 07:11:15 +0200
commitfad54440438a7c231a6ae347738423cbabc936d9 (patch)
tree77907fc0675fe8154a3227e66fd44017baaec58a /net
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc (diff)
downloadlinux-fad54440438a7c231a6ae347738423cbabc936d9.tar.xz
linux-fad54440438a7c231a6ae347738423cbabc936d9.zip
netfilter: avoid double free in nf_reinject
NF_STOLEN means skb was already freed Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nf_queue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_queue.c b/net/netfilter/nf_queue.c
index 5b466cd1272f..84d0fd47636a 100644
--- a/net/netfilter/nf_queue.c
+++ b/net/netfilter/nf_queue.c
@@ -312,6 +312,7 @@ void nf_reinject(struct nf_queue_entry *entry, unsigned int verdict)
}
break;
case NF_STOLEN:
+ break;
default:
kfree_skb(skb);
}