]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
nfct: call register callback on opened handler
authorEric Leblond <eric@regit.org>
Fri, 24 Aug 2012 08:41:31 +0000 (10:41 +0200)
committerEric Leblond <eric@regit.org>
Sat, 5 Jan 2013 09:55:08 +0000 (10:55 +0100)
nfctp_callback_register was called on the regular handler instead
of begin called on the newly opened handler dedicated to the dump.

input/flow/ulogd_inpflow_NFCT.c

index 0946b4cdae69dce1b46d9a4a6746d4afee6d0285..489c9e02b0a3553a468997d5e665a9b6de4ddd2a 100644 (file)
@@ -1063,7 +1063,7 @@ static int constructor_nfct_events(struct ulogd_pluginstance *upi)
                        ulogd_log(ULOGD_FATAL, "error opening ctnetlink\n");
                        goto err_ovh;
                }
-               nfct_callback_register(cpi->cth, NFCT_T_ALL,
+               nfct_callback_register(h, NFCT_T_ALL,
                                       &event_handler_hashtable, upi);
                nfct_query(h, NFCT_Q_DUMP, &family);
                nfct_close(h);