From 70d1fa538a864ee5201e04a3c0f64b4d86e0021b Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Wed, 7 Dec 2022 16:20:27 +0100 Subject: [PATCH] tls: pake: fix missing return values check Signed-off-by: Valerio Setti --- library/ssl_tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 810db243d..c5a8d2478 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -1908,7 +1908,7 @@ int mbedtls_ssl_set_hs_ecjpake_password( mbedtls_ssl_context *ssl, return( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED ); } - psa_pake_set_password_key( &ssl->handshake->psa_pake_ctx, + status = psa_pake_set_password_key( &ssl->handshake->psa_pake_ctx, ssl->handshake->psa_pake_password ); if( status != PSA_SUCCESS ) { @@ -1956,7 +1956,7 @@ int mbedtls_ssl_set_hs_ecjpake_password_opaque( mbedtls_ssl_context *ssl, if( status != PSA_SUCCESS ) goto error; - psa_pake_set_password_key( &ssl->handshake->psa_pake_ctx, + status = psa_pake_set_password_key( &ssl->handshake->psa_pake_ctx, ssl->handshake->psa_pake_password ); if( status != PSA_SUCCESS ) goto error;