summaryrefslogtreecommitdiffstats
path: root/mgmtd/mgmt_txn.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2023-11-11 01:13:17 +0100
committerIgor Ryzhov <iryzhov@nfware.com>2023-11-12 19:28:08 +0100
commitb8a2efbf2f062dd5dc6ab0c660b3cba3f2f469f5 (patch)
treec04a1318de46e9a7e97214290dbc2d69308d4017 /mgmtd/mgmt_txn.c
parentMerge pull request #14758 from LabNConsulting/fix-mgmtd-coverity (diff)
downloadfrr-b8a2efbf2f062dd5dc6ab0c660b3cba3f2f469f5.tar.xz
frr-b8a2efbf2f062dd5dc6ab0c660b3cba3f2f469f5.zip
lib, mgmtd: respect base xpath in mgmtd
`nb_cli_apply_changes` can be called with base xpath which should be prepended to xpaths of every change in a transaction. This base xpath is respected by regular northbound CLI but not by mgmtd. This commit fixes the problem. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'mgmtd/mgmt_txn.c')
-rw-r--r--mgmtd/mgmt_txn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mgmtd/mgmt_txn.c b/mgmtd/mgmt_txn.c
index 765def7ba..1af0f2749 100644
--- a/mgmtd/mgmt_txn.c
+++ b/mgmtd/mgmt_txn.c
@@ -664,8 +664,8 @@ static void mgmt_txn_process_set_cfg(struct event *thread)
txn_req->req.set_cfg->cfg_changes,
(size_t)txn_req->req.set_cfg
->num_cfg_changes,
- NULL, NULL, 0, err_buf,
- sizeof(err_buf), &error);
+ NULL, err_buf, sizeof(err_buf),
+ &error);
if (error) {
mgmt_fe_send_set_cfg_reply(txn->session_id, txn->txn_id,
txn_req->req.set_cfg->ds_id,