From 635b6f672d1d3a35d2c35ba75db8f904226df618 Mon Sep 17 00:00:00 2001 From: Szilard Parrag Date: Wed, 16 Oct 2024 09:32:52 +0200 Subject: [PATCH] lib/filterx: fix LogMessage variables lookup These type of variables should only be returned if they are in sync with the scope (log_msg_has_changes flag is FALSE). Signed-off-by: Szilard Parrag --- lib/filterx/filterx-scope.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/filterx/filterx-scope.c b/lib/filterx/filterx-scope.c index 09fd9aa8d..47e915098 100644 --- a/lib/filterx/filterx-scope.c +++ b/lib/filterx/filterx-scope.c @@ -182,6 +182,8 @@ filterx_scope_validate_variable(FilterXScope *self, FilterXVariable *variable) if (filterx_variable_handle_is_floating(variable->handle) && !variable->declared && variable->generation != self->generation) return FALSE; + if(!filterx_variable_handle_is_floating(variable->handle) && filterx_scope_has_log_msg_changes(self)) + return FALSE; return TRUE; }