From 42b815f4881c3a0bf8c7b3ddfd2685f13aec6959 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 24 Jan 2024 23:03:24 +0200 Subject: [PATCH] mgmtd: fix sending the same value to multiple clients The value should not be cleared after sending it to the first client, otherwise other clients receive an empty string. Signed-off-by: Igor Ryzhov --- mgmtd/mgmt_txn.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mgmtd/mgmt_txn.c b/mgmtd/mgmt_txn.c index c19b39c696..f04dec07bf 100644 --- a/mgmtd/mgmt_txn.c +++ b/mgmtd/mgmt_txn.c @@ -925,7 +925,6 @@ static int mgmt_txn_create_config_batches(struct mgmt_txn_req *txn_req, MGMTD__YANG_DATA_VALUE__VALUE_ENCODED_STR_VAL; batch->value[batch->num_cfg_data].encoded_str_val = value; - value = NULL; MGMTD_TXN_DBG(" -- %s, batch item:%d", adapter->name, (int)batch->num_cfg_data); -- 2.39.5