summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2013-05-25 01:46:10 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2013-05-26 22:05:11 +0200
commit9d5242b19269432ea388d766312ed49f184f83fd (patch)
tree35c6be731655d34e9c756a33c0cb1f55a772bce6 /net
parent079956742452494326081349a66942654498cafa (diff)
downloadop-kernel-dev-9d5242b19269432ea388d766312ed49f184f83fd.zip
op-kernel-dev-9d5242b19269432ea388d766312ed49f184f83fd.tar.gz
netfilter: nfnetlink_queue: avoid peer_portid test
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>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nfnetlink_queue_core.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/netfilter/nfnetlink_queue_core.c b/net/netfilter/nfnetlink_queue_core.c
index 2e0e835..cff4449 100644
--- 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;
OpenPOWER on IntegriCloud