Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrejs Kozlovs <andrejs.kozlovs@zabbix.com>2021-10-12 16:51:50 +0300
committerAndrejs Kozlovs <andrejs.kozlovs@zabbix.com>2021-10-12 16:51:50 +0300
commita33669623295e6233b6609b7cf1644f202a2693d (patch)
tree319efd78bc2e541cc2417dd571e082e1e5c7bd00 /src/libs/zbxaudit
parent9e706ef9e6e09ab4ca08910dbb22caaeef16d890 (diff)
........S. [ZBX-20006] fixed cuid for httptest
Diffstat (limited to 'src/libs/zbxaudit')
-rw-r--r--src/libs/zbxaudit/audit_httptest.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libs/zbxaudit/audit_httptest.c b/src/libs/zbxaudit/audit_httptest.c
index 82c109775d6..8340de3b0d1 100644
--- a/src/libs/zbxaudit/audit_httptest.c
+++ b/src/libs/zbxaudit/audit_httptest.c
@@ -38,13 +38,9 @@ void zbx_audit_httptest_create_entry(int audit_action, zbx_uint64_t httptestid,
{
zbx_audit_entry_t *local_audit_httptest_entry_insert;
- local_audit_httptest_entry_insert = (zbx_audit_entry_t*)zbx_malloc(NULL,
- sizeof(zbx_audit_entry_t));
+ local_audit_httptest_entry_insert = zbx_audit_entry_init(httptestid, name, audit_action,
+ AUDIT_RESOURCE_SCENARIO);
- local_audit_httptest_entry_insert->id = httptestid;
- local_audit_httptest_entry_insert->name = zbx_strdup(NULL, name);
- local_audit_httptest_entry_insert->audit_action = audit_action;
- local_audit_httptest_entry_insert->resource_type = AUDIT_RESOURCE_SCENARIO;
zbx_json_init(&(local_audit_httptest_entry_insert->details_json), ZBX_JSON_STAT_BUF_LEN);
zbx_hashset_insert(zbx_get_audit_hashset(), &local_audit_httptest_entry_insert,