summaryrefslogtreecommitdiff
path: root/tests/vb20_misc_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vb20_misc_tests.c')
-rw-r--r--tests/vb20_misc_tests.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/vb20_misc_tests.c b/tests/vb20_misc_tests.c
index 65ceea97..8021888c 100644
--- a/tests/vb20_misc_tests.c
+++ b/tests/vb20_misc_tests.c
@@ -12,6 +12,7 @@
#include "2common.h"
#include "2misc.h"
#include "2nvstorage.h"
+#include "2rsa.h"
#include "2secdata.h"
#include "vb2_common.h"
#include "test_common.h"
@@ -149,6 +150,7 @@ int vb2_unpack_key(struct vb2_public_key *key,
const uint8_t *buf,
uint32_t size)
{
+ key->arrsize = 0;
return mock_unpack_key_retval;
}