diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-07-16 11:41:58 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-07-16 11:41:58 +0200 |
commit | f18e7875e7019671112ea0258a836f8454f237eb (patch) | |
tree | e5597c3e93bb1ea456928c4b299f90da19721c88 /src/main.c | |
parent | f48fd16527a26fdf0779119a8e1ed889a3b02b23 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |