From: Eric Leblond Date: Fri, 24 Aug 2012 08:41:31 +0000 (+0200) Subject: nfct: call register callback on opened handler X-Git-Tag: ulogd-2.0.2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d36cd45d0ba4cf4ebf62c56c04608a578849d7d;p=thirdparty%2Fulogd2.git nfct: call register callback on opened handler nfctp_callback_register was called on the regular handler instead of begin called on the newly opened handler dedicated to the dump. --- 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);