From: Matus Fabian Date: Fri, 18 Jul 2025 09:43:10 +0000 (-0400) Subject: hsa: http client set connect_sep to null on init X-Git-Tag: v26.02-rc0~163 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F57%2F43457%2F2;p=vpp.git hsa: http client set connect_sep to null on init 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 --- diff --git a/src/plugins/hs_apps/http_client.c b/src/plugins/hs_apps/http_client.c index b6462beff84..97dbca788ee 100644 --- a/src/plugins/hs_apps/http_client.c +++ b/src/plugins/hs_apps/http_client.c @@ -1182,7 +1182,10 @@ static clib_error_t * 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; } diff --git a/src/plugins/hs_apps/http_client_cli.c b/src/plugins/hs_apps/http_client_cli.c index f6247ea7c5a..3980cd9acc9 100644 --- a/src/plugins/hs_apps/http_client_cli.c +++ b/src/plugins/hs_apps/http_client_cli.c @@ -654,9 +654,11 @@ static clib_error_t * 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; }