Address Copilot suggestions

pull/773/head
Mattia Moffa 2026-05-06 14:46:35 +02:00 committed by Daniele Lacamera
parent 26981e0da5
commit 6ff19bf492
1 changed files with 2 additions and 1 deletions

View File

@ -554,7 +554,8 @@ static psa_status_t wolfboot_crypto_dispatch(const psa_invec *in_vec,
psa_status_t status;
if (out_vec == NULL || out_len < 2 ||
out_vec[0].base == NULL ||
out_vec[0].len < sizeof(uint32_t)) {
out_vec[0].len < sizeof(uint32_t) ||
out_vec[1].base == NULL) {
return PSA_ERROR_INVALID_ARGUMENT;
}
slot = wolfboot_hash_find(iov->op_handle);