aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_conntrack_ftp.c
diff options
context:
space:
mode:
authorTaehee Yoo <ap420073@gmail.com>2016-05-14 22:19:53 +0900
committerPablo Neira Ayuso <pablo@netfilter.org>2016-05-30 12:21:22 +0200
commitb7a8daa9f3d1688e994f5557577d3252c94ec282 (patch)
tree14ff56635c46d471fa4da39736fe902c43babe8d /net/netfilter/nf_conntrack_ftp.c
parentdc3ee32e96d74dd6c80eed63af5065cb75899299 (diff)
downloadlinux-b7a8daa9f3d1688e994f5557577d3252c94ec282.tar.gz
netfilter: nf_ct_helper: Fix helper unregister count.
helpers should unregister the only registered ports. but, helper cannot have correct registered ports value when failed to register. Signed-off-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_conntrack_ftp.c')
-rw-r--r--net/netfilter/nf_conntrack_ftp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_conntrack_ftp.c b/net/netfilter/nf_conntrack_ftp.c
index 883c691ec8d057..19efeba02abb0e 100644
--- a/net/netfilter/nf_conntrack_ftp.c
+++ b/net/netfilter/nf_conntrack_ftp.c
@@ -632,6 +632,7 @@ static int __init nf_conntrack_ftp_init(void)
if (ret) {
pr_err("failed to register helper for pf: %d port: %d\n",
ftp[i][j].tuple.src.l3num, ports[i]);
+ ports_c = i;
nf_conntrack_ftp_fini();
return ret;
}