summaryrefslogtreecommitdiffstats
path: root/streaming
diff options
context:
space:
mode:
authorMarkos Fountoulakis <44345837+mfundul@users.noreply.github.com>2020-10-22 16:19:39 +0300
committerGitHub <noreply@github.com>2020-10-22 16:19:39 +0300
commit8b01d04d3e66aee363dee553453520139148dd9d (patch)
tree67c5efaf579499cce6a9da17f28587e7ba17313f /streaming
parentc4923783ed130c923e780d08ea8c507311a76aad (diff)
Disregard host tags configuration pointer and keep duplicate string from streaming handshake. (#10121)
Diffstat (limited to 'streaming')
-rw-r--r--streaming/receiver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/streaming/receiver.c b/streaming/receiver.c
index 9577e85677..9165038cda 100644
--- a/streaming/receiver.c
+++ b/streaming/receiver.c
@@ -279,8 +279,7 @@ static int rrdpush_receive(struct receiver_state *rpt)
rrdpush_send_charts_matching = appconfig_get(&stream_config, rpt->key, "default proxy send charts matching", rrdpush_send_charts_matching);
rrdpush_send_charts_matching = appconfig_get(&stream_config, rpt->machine_guid, "proxy send charts matching", rrdpush_send_charts_matching);
- rpt->tags = (char*)appconfig_set_default(&stream_config, rpt->machine_guid, "host tags", (rpt->tags)?rpt->tags:"");
- if(rpt->tags && !*rpt->tags) rpt->tags = NULL;
+ (void)appconfig_set_default(&stream_config, rpt->machine_guid, "host tags", (rpt->tags)?rpt->tags:"");
if (strcmp(rpt->machine_guid, localhost->machine_guid) == 0) {
log_stream_connection(rpt->client_ip, rpt->client_port, rpt->key, rpt->machine_guid, rpt->hostname, "DENIED - ATTEMPT TO RECEIVE METRICS FROM MACHINE_GUID IDENTICAL TO PARENT");