mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-24 19:44:33 +00:00
mgmtd: fix coverity CID 1574980
Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
parent
b28cd405c8
commit
30e63f2900
@ -1267,6 +1267,7 @@ static int txn_get_tree_data_done(struct mgmt_txn_ctx *txn,
|
||||
struct mgmt_txn_req *txn_req)
|
||||
{
|
||||
struct txn_req_get_tree *get_tree = txn_req->req.get_tree;
|
||||
uint64_t req_id = txn_req->req_id;
|
||||
int ret = 0;
|
||||
|
||||
/* cancel timer and send reply onward */
|
||||
@ -1284,11 +1285,9 @@ static int txn_get_tree_data_done(struct mgmt_txn_ctx *txn,
|
||||
if (ret) {
|
||||
MGMTD_TXN_ERR("Error saving the results of GETTREE for txn-id %" PRIu64
|
||||
" req_id %" PRIu64 " to requested type %u",
|
||||
txn->txn_id, txn_req->req_id,
|
||||
get_tree->result_type);
|
||||
txn->txn_id, req_id, get_tree->result_type);
|
||||
|
||||
(void)mgmt_fe_adapter_txn_error(txn->txn_id, txn_req->req_id,
|
||||
false, ret,
|
||||
(void)mgmt_fe_adapter_txn_error(txn->txn_id, req_id, false, ret,
|
||||
"Error converting results of GETTREE");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user