Skip to content

Commit

Permalink
lib/filterx: fix LogMessage variables lookup
Browse files Browse the repository at this point in the history
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 <szilard.parrag@axoflow.com>
  • Loading branch information
OverOrion committed Oct 16, 2024
1 parent 55fabac commit 635b6f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/filterx/filterx-scope.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 635b6f6

Please sign in to comment.