From 070c5e7a91c413e08c1b8f78cc885f082a636b01 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Sat, 29 Apr 2023 06:22:37 -0400 Subject: lib: msg: refactor common connection code from mgmtd Signed-off-by: Christian Hopps --- staticd/static_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'staticd/static_main.c') diff --git a/staticd/static_main.c b/staticd/static_main.c index 9809d9751..5aa4566ce 100644 --- a/staticd/static_main.c +++ b/staticd/static_main.c @@ -71,7 +71,7 @@ static void sigint(void) /* Disable BFD events to avoid wasting processing. */ bfd_protocol_integration_set_shutdown(true); - mgmt_be_client_lib_destroy(mgmt_lib_hndl); + mgmt_be_client_lib_destroy(); static_vrf_terminate(); @@ -208,7 +208,6 @@ int main(int argc, char **argv, char **envp) /* Initialize MGMT backend functionalities */ mgmt_lib_hndl = mgmt_be_client_lib_init(&mgmt_params, master); - assert(mgmt_lib_hndl); hook_register(routing_conf_event, routing_control_plane_protocols_name_validate); -- cgit v1.2.3