From 87c657036a804c1dd20bfc83c665c105fcdda26c Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Sat, 26 Jan 2019 14:33:26 -0800 Subject: session: properly initialize accepted/connected msgs Change-Id: I36b3ae56e6ca160081c892367fd6a979751fe717 Signed-off-by: Florin Coras --- src/vnet/session/session_api.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vnet/session') diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c index 51b8ba91e42..713d70b490b 100755 --- a/src/vnet/session/session_api.c +++ b/src/vnet/session/session_api.c @@ -436,6 +436,7 @@ mq_send_session_accepted_cb (stream_session_t * s) clib_memset (evt, 0, sizeof (*evt)); evt->event_type = SESSION_CTRL_EVT_ACCEPTED; mp = (session_accepted_msg_t *) evt->data; + clib_memset (mp, 0, sizeof (*mp)); mp->context = app->app_index; mp->server_rx_fifo = pointer_to_uword (s->server_rx_fifo); mp->server_tx_fifo = pointer_to_uword (s->server_tx_fifo); @@ -614,6 +615,7 @@ mq_send_session_connected_cb (u32 app_wrk_index, u32 api_context, clib_memset (evt, 0, sizeof (*evt)); evt->event_type = SESSION_CTRL_EVT_CONNECTED; mp = (session_connected_msg_t *) evt->data; + clib_memset (mp, 0, sizeof (*mp)); mp->context = api_context; if (is_fail) -- cgit 1.2.3-korg