pk: restructure precondition check

This commit is contained in:
Andrzej Kurek 2019-02-05 05:09:05 -05:00
parent b274f2739e
commit efed323698

View File

@ -508,8 +508,7 @@ int mbedtls_pk_check_pair( const mbedtls_pk_context *pub, const mbedtls_pk_conte
PK_VALIDATE_RET( prv != NULL );
if( pub->pk_info == NULL ||
prv->pk_info == NULL ||
prv->pk_info->check_pair_func == NULL )
prv->pk_info == NULL )
{
return( MBEDTLS_ERR_PK_BAD_INPUT_DATA );
}