summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-07-16 11:41:58 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2009-07-16 11:41:58 +0200
commitf18e7875e7019671112ea0258a836f8454f237eb (patch)
treee5597c3e93bb1ea456928c4b299f90da19721c88 /src/main.c
parentf48fd16527a26fdf0779119a8e1ed889a3b02b23 (diff)
src: unset all the callback handler in the nfct_close() path.
This patch unsets all the existing callbacks if we call nfct_close(). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index d0ed9c0..87f1ae3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -88,6 +88,9 @@ int nfct_close(struct nfct_handle *cth)
/* required by the new API */
cth->cb = NULL;
+ cth->cb2 = NULL;
+ cth->expect_cb = NULL;
+ cth->expect_cb2 = NULL;
free(cth->nfnl_cb.data);
cth->nfnl_cb.call = NULL;