From 8b01d04d3e66aee363dee553453520139148dd9d Mon Sep 17 00:00:00 2001 From: Markos Fountoulakis <44345837+mfundul@users.noreply.github.com> Date: Thu, 22 Oct 2020 16:19:39 +0300 Subject: Disregard host tags configuration pointer and keep duplicate string from streaming handshake. (#10121) --- streaming/receiver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'streaming') 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"); -- cgit v1.2.3