diff options
author | Taehee Yoo <ap420073@gmail.com> | 2016-05-14 13:19:53 (GMT) |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-05-30 10:21:22 (GMT) |
commit | b7a8daa9f3d1688e994f5557577d3252c94ec282 (patch) | |
tree | 14ff56635c46d471fa4da39736fe902c43babe8d /net/netfilter/nf_conntrack_ftp.c | |
parent | dc3ee32e96d74dd6c80eed63af5065cb75899299 (diff) | |
download | linux-b7a8daa9f3d1688e994f5557577d3252c94ec282.tar.xz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_conntrack_ftp.c b/net/netfilter/nf_conntrack_ftp.c index 883c691..19efeba 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; } |