netfilter: nfnetlink_queue: avoid peer_portid test
Subsystems (3)
Pablo Neira Ayuso
maintainerPATCH 9/12 netfilter: nfnetlink_queue: avoid peer_portid test
From: Florian Westphal <[email protected]>
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 <[email protected]>
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- net/netfilter/nfnetlink_queue_core.c | 4 ---- 1 file changed, 4 deletions(-)
net/netfilter/nfnetlink_queue_core.c +0 -4
@@ -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 ;
Signature · 1 line
1.7.10.4