summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--input/flow/ulogd_inpflow_NFCT.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/input/flow/ulogd_inpflow_NFCT.c b/input/flow/ulogd_inpflow_NFCT.c
index 8097fd1..af4fec6 100644
--- a/input/flow/ulogd_inpflow_NFCT.c
+++ b/input/flow/ulogd_inpflow_NFCT.c
@@ -1131,9 +1131,15 @@ static int constructor_nfct_polling(struct ulogd_pluginstance *upi)
goto err_hashtable;
}
+ cpi->ct = nfct_new();
+ if (cpi->ct == NULL)
+ goto err_ct_cache;
+
ulogd_log(ULOGD_NOTICE, "NFCT working in polling mode\n");
return 0;
+err_ct_cache:
+ hashtable_destroy(cpi->ct_active);
err_hashtable:
nfct_close(cpi->pgh);
err: