@cryptotaxi247 / netdata-1 / commits / baf8ccbbb

Fix uninitialized vnode stale timeout field in pluginsd parser (#21983)

Initialize `node_stale_after_seconds` field in `pluginsd_parser`

Stelios Fragkakis committed Mar 20, 2026 at 00:12 UTC baf8ccbbb0b416155ea9e371b8acc89585e96d09
1 file changed +2
src/plugins.d/pluginsd_parser.c
+2
@@ -125,6 +125,7 @@ static void pluginsd_host_define_cleanup(PARSER *parser) {
125 parser->user.host_define.hostname = NULL;
126 parser->user.host_define.rrdlabels = NULL;
127 parser->user.host_define.parsing_host = false;
128 + parser->user.host_define.node_stale_after_seconds = 0;
129 }
130
131 static inline bool pluginsd_validate_machine_guid(const char *guid, nd_uuid_t *uuid, char *output) {
@@ -153,6 +154,7 @@ static inline PARSER_RC pluginsd_host_define(char **words, size_t num_words, PAR
154 parser->user.host_define.hostname = string_strdupz(hostname);
155 parser->user.host_define.rrdlabels = rrdlabels_create();
156 parser->user.host_define.parsing_host = true;
157 + parser->user.host_define.node_stale_after_seconds = 0;
158
159 return PARSER_RC_OK;
160 }