From fb70ecde4e10ac5e64cbef3f79aa37e0f465499f Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Tue, 23 Jun 2026 15:17:21 +0200 Subject: [PATCH] scripts: ssl_session_reset_check: fix check for special fields in _get_element_type The previous check was completely wrong since it was comparing objects of different types. The only things that need to be checked here is that 'name' appears in the FieldsInfo.special dictionary. Signed-off-by: Valerio Setti --- scripts/mbedtls_framework/ssl_session_reset_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mbedtls_framework/ssl_session_reset_check.py b/scripts/mbedtls_framework/ssl_session_reset_check.py index 54c5612a5..a72769f5d 100644 --- a/scripts/mbedtls_framework/ssl_session_reset_check.py +++ b/scripts/mbedtls_framework/ssl_session_reset_check.py @@ -131,7 +131,7 @@ class CStruct: """Return structure field type based on either its name or the fact that it belongs to the list of special symbols/named structures""" # Check for fields with custom check rules - if self.fields_info.special.get(name, None) == ResetBehavior.SPECIAL: + if name in self.fields_info.special: return ElementType.SPECIAL # Check for named structures if name in self.fields_info.named_structures: