Merge pull request #8069 from paul-elliott-arm/fix_ecjpake_deadcode

Fix logical dead code found by Coverity
This commit is contained in:
Gilles Peskine 2023-08-21 14:44:36 +00:00 committed by GitHub
commit 0addbe6dc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,12 +178,12 @@ psa_status_t mbedtls_psa_pake_setup(mbedtls_psa_pake_operation_t *operation,
return status;
}
psa_crypto_driver_pake_get_user_len(inputs, &user_len);
status = psa_crypto_driver_pake_get_user_len(inputs, &user_len);
if (status != PSA_SUCCESS) {
return status;
}
psa_crypto_driver_pake_get_peer_len(inputs, &peer_len);
status = psa_crypto_driver_pake_get_peer_len(inputs, &peer_len);
if (status != PSA_SUCCESS) {
return status;
}