From f18e7875e7019671112ea0258a836f8454f237eb Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 16 Jul 2009 11:41:58 +0200 Subject: 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 --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; -- cgit v1.2.3