diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2023-03-07 16:04:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-07 16:04:56 +0200 |
commit | a5efb978e1b89ff4495fc06a748d2ab69be1d73b (patch) | |
tree | 85152ea9309a5361b1ce229489bb0141d225009e /aclk/aclk.c | |
parent | 646d43d9c0d50b83273f580c314686c20a7e8127 (diff) |
Guard for null host when sending node instances (#14673)
* guard for null host when sending node instances
* also add a default value when migrating
Diffstat (limited to 'aclk/aclk.c')
-rw-r--r-- | aclk/aclk.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/aclk/aclk.c b/aclk/aclk.c index e808972213..9e03e04c8c 100644 --- a/aclk/aclk.c +++ b/aclk/aclk.c @@ -870,6 +870,11 @@ void aclk_send_node_instances() uuid_unparse_lower(list->host_id, host_id); RRDHOST *host = rrdhost_find_by_guid(host_id); + if (unlikely(!host)) { + freez((void*)node_state_update.node_id); + freez(query); + continue; + } node_state_update.capabilities = aclk_get_node_instance_capas(host); rrdhost_aclk_state_lock(localhost); |