netfilter: nf_ct_expect: nf_ct_expect_related_report(): Return zero on success.
authorJarno Rajahalme <jarno@ovn.org>
Fri, 24 Feb 2017 01:08:53 +0000 (17:08 -0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 25 Feb 2017 12:32:35 +0000 (13:32 +0100)
commit7fb668ac7b498f7e8ba2de373fe8a8648bd39a4c
treece6810abbde346e7e95022f9e3a81fe1dfb2828f
parentf2168273427c9358a21d1c77c629353c00d46c34
netfilter: nf_ct_expect: nf_ct_expect_related_report(): Return zero on success.

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, which caused openvswitch
conntrack integration fail in FTP test cases.

Fix this by always returning zero on the success code path.

Fixes: 4dee62b1b9b4 ("netfilter: nf_ct_expect: nf_ct_expect_insert() returns void")
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