summaryrefslogtreecommitdiffstats
path: root/staticd/static_main.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-04-29 12:22:37 +0200
committerChristian Hopps <chopps@labn.net>2023-05-28 11:13:22 +0200
commit070c5e7a91c413e08c1b8f78cc885f082a636b01 (patch)
tree5c55d456cf6459f89f723c12fc8fd5d645bec0f3 /staticd/static_main.c
parentlib: mgmt msg: add version to messages (diff)
downloadfrr-070c5e7a91c413e08c1b8f78cc885f082a636b01.tar.xz
frr-070c5e7a91c413e08c1b8f78cc885f082a636b01.zip
lib: msg: refactor common connection code from mgmtd
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'staticd/static_main.c')
-rw-r--r--staticd/static_main.c3
1 files changed, 1 insertions, 2 deletions
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);