aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ks.c b/ks.c
index f4015e0..2b3c1c1 100644
--- a/ks.c
+++ b/ks.c
@@ -616,6 +616,7 @@ hal_error_t hal_ks_fetch(hal_ks_t *ks,
hal_error_t err = HAL_OK;
hal_ks_block_t *block;
+ size_t k_der_len = 0;
unsigned b;
hal_ks_lock();
@@ -633,8 +634,8 @@ hal_error_t hal_ks_fetch(hal_ks_t *ks,
hal_ks_cache_mark_used(ks, block, b);
hal_ks_key_block_t *k = &block->key;
- const size_t k_der_len = k->der_len;
+ k_der_len = k->der_len;
slot->type = k->type;
slot->curve = k->curve;
slot->flags = k->flags;