From: Igor Ryzhov Date: Wed, 24 Jan 2024 21:03:24 +0000 (+0200) Subject: mgmtd: fix sending the same value to multiple clients X-Git-Tag: base_10.0~74^2~5 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=42b815f4881c3a0bf8c7b3ddfd2685f13aec6959;p=matthieu%2Ffrr.git 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 --- 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);