netfilter: ctnetlink: Expectations must have a conntrack helper area
authorGao Feng <fgao@ikuai8.com>
Tue, 28 Mar 2017 01:52:52 +0000 (09:52 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 6 Apr 2017 20:01:42 +0000 (22:01 +0200)
commit2c62e0bc685fcb400a0b5cffb39860290bc902a8
tree94a86bfcf9f57b7434ff82ab1bbbb903acdca758
parent6e699867f84c0f358fed233fe6162173aca28e04
netfilter: ctnetlink: Expectations must have a conntrack helper area

The expect check function __nf_ct_expect_check() asks the master_help is
necessary. So it is unnecessary to go ahead in ctnetlink_alloc_expect
when there is no help.

Actually the commit bc01befdcf3e ("netfilter: ctnetlink: add support for
user-space expectation helpers") permits ctnetlink create one expect
even though there is no master help. But the latter commit 3d058d7bc2c5
("netfilter: rework user-space expectation helper support") disables it
again.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_netlink.c