From 69b68ef1a98ab45becb585f8906acc19b9665e6d Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 2 Apr 2019 11:38:51 -0700 Subject: session: use app cb function wrappers Change-Id: I77ad9eb4d4c7699397aa4be6a973ef37c60db4c5 Signed-off-by: Florin Coras --- src/plugins/quic/quic.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c index 82de6de130b..07722400438 100644 --- a/src/plugins/quic/quic.c +++ b/src/plugins/quic/quic.c @@ -1068,18 +1068,15 @@ quic_session_connected_callback (u32 quic_app_index, u32 ho_ctx_idx, ho_ctx = quic_ctx_half_open_get (ho_ctx_idx); if (is_fail) { - int (*cb_fn) (u32, u32, session_t *, u8), rv = 0; - u32 wrk_index, api_context; + u32 api_context; + int rv = 0; - wrk_index = ho_ctx->c_quic_ctx_id.parent_app_wrk_idx; app_wrk = app_worker_get_if_valid (ho_ctx->c_quic_ctx_id.parent_app_wrk_idx); if (app_wrk) { api_context = ho_ctx->c_s_index; - app = application_get (app_wrk->app_index); - cb_fn = app->cb_fns.session_connected_callback; - rv = cb_fn (wrk_index, api_context, 0, 1 /* failed */ ); + app_worker_connect_notify (app_wrk, 0, api_context); } quic_ctx_half_open_reader_unlock (); quic_ctx_half_open_free (ho_ctx_idx); -- cgit 1.2.3-korg