diff options
author | laforge <laforge> | 2002-04-16 07:33:00 +0000 |
---|---|---|
committer | laforge <laforge> | 2002-04-16 07:33:00 +0000 |
commit | afe9c9d982b90bca233dbe0c2e6f18b0366d3877 (patch) | |
tree | 4b252ce41ff57ccd081ea91f34ff8328f62b41ed /kernel/ipt_ULOG.c | |
parent | 47715347d9012e646505443fea53d320e90f4160 (diff) |
first unregister target, then clean up structures
Diffstat (limited to 'kernel/ipt_ULOG.c')
-rw-r--r-- | kernel/ipt_ULOG.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/ipt_ULOG.c b/kernel/ipt_ULOG.c index d6e5162..a2ab5ba 100644 --- a/kernel/ipt_ULOG.c +++ b/kernel/ipt_ULOG.c @@ -29,7 +29,7 @@ * Specify, after how many clock ticks (intel: 100 per second) the queue * should be flushed even if it is not full yet. * - * $Id: ipt_ULOG.c,v 1.16 2002/02/13 07:14:53 laforge Exp $ + * $Id: ipt_ULOG.c,v 1.17 2002/04/10 09:21:41 laforge Exp $ */ #include <linux/module.h> @@ -344,6 +344,9 @@ static void __exit fini(void) DEBUGP("ipt_ULOG: cleanup_module\n"); + ipt_unregister_target(&ipt_ulog_reg); + sock_release(nflognl->socket); + /* remove pending timers and free allocated skb's */ for (i = 0; i < ULOG_MAXNLGROUPS; i++) { ub = &ulog_buffers[i]; @@ -358,8 +361,6 @@ static void __exit fini(void) } } - ipt_unregister_target(&ipt_ulog_reg); - sock_release(nflognl->socket); } module_init(init); |