summaryrefslogtreecommitdiffstats
path: root/streaming/receiver.c
diff options
context:
space:
mode:
Diffstat (limited to 'streaming/receiver.c')
-rw-r--r--streaming/receiver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/streaming/receiver.c b/streaming/receiver.c
index 8a3494ae1e..11191f3c78 100644
--- a/streaming/receiver.c
+++ b/streaming/receiver.c
@@ -131,8 +131,7 @@ PARSER_RC streaming_claimed_id(char **words, void *user, PLUGINSD_ACTION *plugin
freez(host->aclk_state.claimed_id);
host->aclk_state.claimed_id = strcmp(words[2], "NULL") ? strdupz(words[2]) : NULL;
- if (likely(host->aclk_state.claimed_id))
- store_claim_id(&host->host_uuid, &uuid);
+ store_claim_id(&host->host_uuid, host->aclk_state.claimed_id ? &uuid : NULL);
rrdhost_aclk_state_unlock(host);