Set connect_sep in http (cli) client to SESSION_ENDPOINT_CFG_NULL on
init to be sure that parrent_handle is invalid if not used.
Type: improvement
Change-Id: Ia42cbe8ea90402d20b07f933b5308642a098235f
Signed-off-by: Matus Fabian <[email protected]>
hc_main_init ()
{
hc_main_t *hcm = &hc_main;
+ session_endpoint_cfg_t sep_null = SESSION_ENDPOINT_CFG_NULL;
+
hcm->app_index = APP_INVALID_INDEX;
+ hcm->connect_sep = sep_null;
return 0;
}
hcc_main_init (vlib_main_t *vm)
{
hcc_main_t *hcm = &hcc_main;
+ session_endpoint_cfg_t sep_null = SESSION_ENDPOINT_CFG_NULL;
hcm->app_index = ~0;
hcm->vlib_main = vm;
+ hcm->connect_sep = sep_null;
return 0;
}