]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: do not propagate nf_queue errors in nf_hook_slow
authorFlorian Westphal <fw@strlen.de>
Mon, 31 Oct 2011 11:20:16 +0000 (12:20 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 1 Nov 2011 08:57:21 +0000 (09:57 +0100)
commit6d0176aca5c976f4fca9efad2122c92f2595c622
treeffe3e473e74f77914c575f04a9f786f3caa839cc
parenta90a43a2939b604c8bc5d68f81d533d5a3afaa47
netfilter: do not propagate nf_queue errors in nf_hook_slow

commit 0a0dd5892ac655dc115d1de3409555f5abe2038e
(netfilter: nfnetlink_queue: return error number to caller)
erronously assigns the return value of nf_queue() to the "ret" value.

This can cause bogus return values if we encounter QUEUE verdict
when bypassing is enabled, the listener does not exist and the
next hook returns NF_STOLEN.

In this case nf_hook_slow returned -ESRCH instead of 0.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/core.c