diff options
author | Rob Austein <sra@hactrn.net> | 2017-05-28 18:50:23 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-05-28 18:50:23 -0400 |
commit | 9e20f2fa42bcd493548bf7764958848ab72d1255 (patch) | |
tree | 79772261b4f6d08389eb4a4735a91550ac95b338 /ks_token.c | |
parent | 2caa6c72640877abc5f3572c4d926a23ff672ab1 (diff) |
Debug new keystore init code.
Diffstat (limited to 'ks_token.c')
-rw-r--r-- | ks_token.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -338,6 +338,11 @@ static hal_error_t ks_token_init(hal_ks_t *ks, const int alloc) unsigned b; + if ((block = hal_ks_cache_pick_lru(ks)) == NULL) { + err = HAL_ERROR_IMPOSSIBLE; + goto done; + } + memset(block, 0xFF, sizeof(*block)); block->header.block_type = HAL_KS_BLOCK_TYPE_PIN; |