summaryrefslogtreecommitdiffstats
path: root/net/openvswitch/conntrack.c
diff options
context:
space:
mode:
authorGao Feng <fgao@ikuai8.com>2017-04-14 10:00:08 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2017-04-24 20:03:01 +0200
commit470acf55a021713869b9bcc967268ac90c8a0fac (patch)
tree09df3da328d3756c1f981458fbaad178b6539bd4 /net/openvswitch/conntrack.c
parent94836ecf1e7378b64d37624fbb81fe48fbd4c772 (diff)
downloadtalos-op-linux-470acf55a021713869b9bcc967268ac90c8a0fac.tar.gz
talos-op-linux-470acf55a021713869b9bcc967268ac90c8a0fac.zip
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/conntrack.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud