From 0ec8bac857c81b0ff8075b2a5db4363361a5040d Mon Sep 17 00:00:00 2001 From: Gianmatteo Palmieri Date: Mon, 28 Oct 2024 14:34:11 +0100 Subject: [PATCH] fix(libsinsp): invalid field_info check Signed-off-by: Gianmatteo Palmieri --- userspace/libsinsp/state/dynamic_struct.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/libsinsp/state/dynamic_struct.h b/userspace/libsinsp/state/dynamic_struct.h index 63b1500dc5..55ac0fd545 100644 --- a/userspace/libsinsp/state/dynamic_struct.h +++ b/userspace/libsinsp/state/dynamic_struct.h @@ -96,7 +96,7 @@ class dynamic_struct { inline bool valid() const { // note(jasondellaluce): for now dynamic fields of type table are // not supported, so we consider them to be invalid - return m_index != (size_t)-1 && m_index != typeinfo::index_t::TI_TABLE; + return m_index != (size_t)-1 && m_info.index() != typeinfo::index_t::TI_TABLE; } /**