]> git.karo-electronics.de Git - karo-tx-linux.git/commit
netfilter: nf_ct_expect: Change __nf_ct_expect_check() return value.
authorJarno Rajahalme <jarno@ovn.org>
Fri, 24 Feb 2017 01:08:54 +0000 (17:08 -0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 26 Feb 2017 16:06:59 +0000 (17:06 +0100)
commit4b86c459c7bee3acaf92f0e2b4c6ac803eaa1a58
tree92a327731dd37dada3a753fae2807320329700ab
parent7fb668ac7b498f7e8ba2de373fe8a8648bd39a4c
netfilter: nf_ct_expect: Change __nf_ct_expect_check() return value.

Commit 4dee62b1b9b4 ("netfilter: nf_ct_expect: nf_ct_expect_insert()
returns void") inadvertently changed the successful return value of
nf_ct_expect_related_report() from 0 to 1 due to
__nf_ct_expect_check() returning 1 on success.  Prevent this
regression in the future by changing the return value of
__nf_ct_expect_check() to 0 on success.

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Joe Stringer <joe@ovn.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_expect.c