diff options
author | Gao Feng <fgao@ikuai8.com> | 2017-04-14 10:00:08 +0800 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-04-24 20:03:01 +0200 |
commit | 470acf55a021713869b9bcc967268ac90c8a0fac (patch) | |
tree | 09df3da328d3756c1f981458fbaad178b6539bd4 /net/openvswitch | |
parent | 94836ecf1e7378b64d37624fbb81fe48fbd4c772 (diff) |
netfilter: xt_CT: fix refcnt leak on error path
There are two cases which causes refcnt leak.
1. When nf_ct_timeout_ext_add failed in xt_ct_set_timeout, it should
free the timeout refcnt.
Now goto the err_put_timeout error handler instead of going ahead.
2. When the time policy is not found, we should call module_put.
Otherwise, the related cthelper module cannot be removed anymore.
It is easy to reproduce by typing the following command:
# iptables -t raw -A OUTPUT -p tcp -j CT --helper ftp --timeout xxx
Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/openvswitch')
0 files changed, 0 insertions, 0 deletions