Don't use idiom `if( func() )` but always add explicit value check
diff --git a/library/ssl_srv.c b/library/ssl_srv.c
index 54cce0a..4d99f88 100644
--- a/library/ssl_srv.c
+++ b/library/ssl_srv.c
@@ -3869,7 +3869,7 @@
#if defined(MBEDTLS_USE_PSA_CRYPTO)
/* For opaque PSKs, we perform the PSK-to-MS derivation atomatically
* and skip the intermediate PMS. */
- if( ssl_use_opaque_psk( ssl ) )
+ if( ssl_use_opaque_psk( ssl ) == 1 )
MBEDTLS_SSL_DEBUG_MSG( 1, ( "skip PMS generation for opaque PSK" ) );
else
#endif /* MBEDTLS_USE_PSA_CRYPTO */