diff options
author | Christian Hopps <chopps@labn.net> | 2024-01-11 16:38:58 +0100 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2024-01-11 19:14:58 +0100 |
commit | 29f2a300a328974146230c320ef63d047a679e81 (patch) | |
tree | 58cedcb420b377c414315075bbdf0d6de5b2fe89 /mgmtd/mgmt_fe_adapter.c | |
parent | Merge pull request #15098 from donaldsharp/lib_zebra_h_cleanup_2 (diff) | |
download | frr-29f2a300a328974146230c320ef63d047a679e81.tar.xz frr-29f2a300a328974146230c320ef63d047a679e81.zip |
lib: fix coverity issues
** CID 1575504: Insecure data handling (TAINTED_SCALAR) (maybe)
** CID 1575505: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
** CID 1575506: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
** CID 1575507: Null pointer dereferences (REVERSE_INULL)
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'mgmtd/mgmt_fe_adapter.c')
-rw-r--r-- | mgmtd/mgmt_fe_adapter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mgmtd/mgmt_fe_adapter.c b/mgmtd/mgmt_fe_adapter.c index b7c7a0fff..a69d27fc5 100644 --- a/mgmtd/mgmt_fe_adapter.c +++ b/mgmtd/mgmt_fe_adapter.c @@ -1087,7 +1087,7 @@ static int fe_adapter_send_tree_data(struct mgmt_fe_session_ctx *session, uint8_t *buf = NULL; int ret = 0; - darr_append_n(buf, offsetof(typeof(*msg), result)); + darr_append_n(buf, sizeof(*msg)); msg = (typeof(msg))buf; msg->refer_id = session->session_id; msg->req_id = req_id; |