From 669090c2f44bddd23df909b8c4d8942f117f20dc Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 25 Aug 2026 10:18:05 -0400 Subject: [PATCH] MT#65420 check callback function before calling it Change-Id: I4877d5dfdce01f13ebe21e11de2c0597adc54b74 --- daemon/control_ng.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/control_ng.c b/daemon/control_ng.c index 2ff559678..85dc355bc 100644 --- a/daemon/control_ng.c +++ b/daemon/control_ng.c @@ -390,7 +390,8 @@ static const char *json_list_iter(const ng_parser_t *parser, JsonNode *list, JsonNode *n = json_array_get_element(a, i); const char *err = NULL; if (json_node_get_node_type(n) == JSON_NODE_VALUE - && json_node_get_value_type(n) == G_TYPE_STRING) + && json_node_get_value_type(n) == G_TYPE_STRING + && str_callback) { const char *s = json_node_get_string(n); if (s)