projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0799567
)
netfilter: nfnetlink_queue: avoid peer_portid test
author
Florian Westphal
<fw@strlen.de>
Sat, 25 May 2013 01:46:10 +0000
(
01:46
+0000)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Sun, 26 May 2013 20:05:11 +0000
(22:05 +0200)
The portid is set to NETLINK_CB(skb).portid at create time.
The run-time check will always be false.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_queue_core.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nfnetlink_queue_core.c
b/net/netfilter/nfnetlink_queue_core.c
index
2e0e835
..
cff4449
100644
(file)
--- a/
net/netfilter/nfnetlink_queue_core.c
+++ b/
net/netfilter/nfnetlink_queue_core.c
@@
-509,10
+509,6
@@
__nfqnl_enqueue_packet(struct net *net, struct nfqnl_instance *queue,
}
spin_lock_bh(&queue->lock);
- if (!queue->peer_portid) {
- err = -EINVAL;
- goto err_out_free_nskb;
- }
if (queue->queue_total >= queue->queue_maxlen) {
if (queue->flags & NFQA_CFG_F_FAIL_OPEN) {
failopen = 1;