aboutsummaryrefslogtreecommitdiff
path: root/projects/cli-test/mgmt-timing.c
diff options
context:
space:
mode:
Diffstat (limited to 'projects/cli-test/mgmt-timing.c')
-rw-r--r--projects/cli-test/mgmt-timing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/cli-test/mgmt-timing.c b/projects/cli-test/mgmt-timing.c
index d3e0245..c1ad3c3 100644
--- a/projects/cli-test/mgmt-timing.c
+++ b/projects/cli-test/mgmt-timing.c
@@ -520,7 +520,7 @@ static int cmd_timing_hal_aes_keyunwrap(struct cli_def *cli, const char *command
}
uint8_t wrapped[HAL_KS_WRAPPED_KEYSIZE];
- size_t wrapped_len;
+ size_t wrapped_len = sizeof(wrapped);
if ((err = hal_aes_keywrap(NULL, kek, kek_len, der, der_len, wrapped, &wrapped_len)) != LIBHAL_OK) {
cli_print(cli, "hal_aes_keywrap: %s", hal_error_string(err));
return CLI_ERROR;