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: