diff options
author | Andrejs Kozlovs <andrejs.kozlovs@zabbix.com> | 2021-10-12 16:51:50 +0300 |
---|---|---|
committer | Andrejs Kozlovs <andrejs.kozlovs@zabbix.com> | 2021-10-12 16:51:50 +0300 |
commit | a33669623295e6233b6609b7cf1644f202a2693d (patch) | |
tree | 319efd78bc2e541cc2417dd571e082e1e5c7bd00 /src/libs/zbxaudit | |
parent | 9e706ef9e6e09ab4ca08910dbb22caaeef16d890 (diff) |
........S. [ZBX-20006] fixed cuid for httptest
Diffstat (limited to 'src/libs/zbxaudit')
-rw-r--r-- | src/libs/zbxaudit/audit_httptest.c | 8 |
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, |