diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-06-13 10:10:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-13 10:10:18 +0200 |
commit | e0db9a05bd43eafbd6e2b2bf84aaa7ac31b415fa (patch) | |
tree | 1a7d330c62e2a0bacd77a2a574852c5debd89dbb /lib/mgmt_fe_client.c | |
parent | Merge pull request #13704 from donaldsharp/flowspec_support_bundle (diff) | |
parent | tests: add mgmtd config test (diff) | |
download | frr-e0db9a05bd43eafbd6e2b2bf84aaa7ac31b415fa.tar.xz frr-e0db9a05bd43eafbd6e2b2bf84aaa7ac31b415fa.zip |
Merge pull request #13763 from LabNConsulting/mgmtd/simplify
fix 'exit' bug in config file processing, et al.
Diffstat (limited to 'lib/mgmt_fe_client.c')
-rw-r--r-- | lib/mgmt_fe_client.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/mgmt_fe_client.c b/lib/mgmt_fe_client.c index 35a6d7d90..7af421405 100644 --- a/lib/mgmt_fe_client.c +++ b/lib/mgmt_fe_client.c @@ -124,18 +124,15 @@ static int mgmt_fe_send_session_req(struct mgmt_fe_client *client, { Mgmtd__FeMessage fe_msg; Mgmtd__FeSessionReq sess_req; - bool scok; mgmtd__fe_session_req__init(&sess_req); sess_req.create = create; if (create) { sess_req.id_case = MGMTD__FE_SESSION_REQ__ID_CLIENT_CONN_ID; sess_req.client_conn_id = session->client_id; - scok = true; } else { sess_req.id_case = MGMTD__FE_SESSION_REQ__ID_SESSION_ID; sess_req.session_id = session->session_id; - scok = false; } mgmtd__fe_message__init(&fe_msg); @@ -146,7 +143,7 @@ static int mgmt_fe_send_session_req(struct mgmt_fe_client *client, "Sending SESSION_REQ %s message for client-id %" PRIu64, create ? "create" : "destroy", session->client_id); - return mgmt_fe_client_send_msg(client, &fe_msg, scok); + return mgmt_fe_client_send_msg(client, &fe_msg, true); } int mgmt_fe_send_lockds_req(struct mgmt_fe_client *client, uint64_t session_id, |