Patchwork [1/4] nfct: call register callback on opened handler

login
register
mail settings
Submitter Eric Leblond
Date Dec. 28, 2012, 5:29 p.m.
Message ID <1356715802-11572-2-git-send-email-eric@regit.org>
Download mbox | patch
Permalink /patch/208508/
State Accepted
Headers show

Comments

Eric Leblond - Dec. 28, 2012, 5:29 p.m.
nfctp_callback_register was called on the regular handler instead
of begin called on the newly opened handler dedicated to the dump.

Signed-off-by: Eric Leblond <eric@regit.org>
---
 input/flow/ulogd_inpflow_NFCT.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/input/flow/ulogd_inpflow_NFCT.c b/input/flow/ulogd_inpflow_NFCT.c
index 0946b4c..489c9e0 100644
--- a/input/flow/ulogd_inpflow_NFCT.c
+++ b/input/flow/ulogd_inpflow_NFCT.c
@@ -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);