diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-24 23:03:24 +0200 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2024-01-26 12:34:46 -0500 |
| commit | 42b815f4881c3a0bf8c7b3ddfd2685f13aec6959 (patch) | |
| tree | 42236a217d08bc514655cc1a3d7ce4fabd41b45e | |
| parent | 1bf395232de224bec841c01a1b6c67bce5b525bc (diff) | |
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 <iryzhov@nfware.com>
| -rw-r--r-- | mgmtd/mgmt_txn.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |
