[NETFILTER] Remove nf_conntrack stat proc file when cleaning up

Fix nf_conntrack statistics proc file removal. Looks like the old bug
was forward-ported from ip_conntrack. :-]

Signed-off-by: KOVACS Krisztian <[EMAIL PROTECTED]>
Signed-off-by: Harald Welte <[EMAIL PROTECTED]>

---
commit e37f2398f88f221ad527c72a3f822dc688a96f1c
tree 8f5c232af36f0cbc70bd30844d4ab1934bb0afd3
parent deb1f04a50c8ca384263f089dd9b6e71d8262b80
author KOVACS Krisztian <[EMAIL PROTECTED]> Tue, 15 Nov 2005 17:14:22 +0100
committer Harald Welte <[EMAIL PROTECTED]> Tue, 15 Nov 2005 17:14:22 +0100

 net/netfilter/nf_conntrack_standalone.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netfilter/nf_conntrack_standalone.c 
b/net/netfilter/nf_conntrack_standalone.c
--- a/net/netfilter/nf_conntrack_standalone.c
+++ b/net/netfilter/nf_conntrack_standalone.c
@@ -694,7 +694,7 @@ static int init_or_cleanup(int init)
  cleanup_proc_stat:
 #endif
 #ifdef CONFIG_PROC_FS
-       proc_net_remove("nf_conntrack_stat");
+       remove_proc_entry("nf_conntrack", proc_net_stat);
  cleanup_proc_exp:
        proc_net_remove("nf_conntrack_expect");
  cleanup_proc:

--
- Harald Welte <[EMAIL PROTECTED]>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to