Commit 76327e6b authored by npzacs's avatar npzacs Committed by hpi1

Check for empty UK list earlier

parent 21da4112
......@@ -933,6 +933,11 @@ static int _calc_uks(AACS *aacs, config_file *cf)
uint8_t mk[16] = {0}, vuk[16] = {0};
if (aacs->uk->num_uk < 1) {
/* no keys ... */
return AACS_SUCCESS;
}
if (cf) {
BD_DEBUG(DBG_AACS, "Searching for keydb config entry...\n");
_find_config_entry(aacs, cf->list, mk, vuk);
......@@ -943,11 +948,6 @@ static int _calc_uks(AACS *aacs, config_file *cf)
}
}
if (aacs->uk->num_uk < 1) {
/* no keys ... */
return AACS_SUCCESS;
}
/* Try to calculate VUK */
vuk_error_code = _calc_vuk(aacs, mk, vuk, cf);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment