aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-01-26 14:33:26 -0800
committerDamjan Marion <dmarion@me.com>2019-01-27 16:56:27 +0000
commit87c657036a804c1dd20bfc83c665c105fcdda26c (patch)
tree003b8b46ca6171072dad8e6d6a4453bb92c45f5d /src/vnet
parent53fe4a79269671fd37bf8a1fbb147bcc99b04fab (diff)
session: properly initialize accepted/connected msgs
Change-Id: I36b3ae56e6ca160081c892367fd6a979751fe717 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet')
-rwxr-xr-xsrc/vnet/session/session_api.c2
1 files changed, 2 insertions, 0 deletions
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)