diff options
Diffstat (limited to 'host/lib/host_keyblock2.c')
-rw-r--r-- | host/lib/host_keyblock2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/host_keyblock2.c b/host/lib/host_keyblock2.c index 9394cf6a..570d3c8a 100644 --- a/host/lib/host_keyblock2.c +++ b/host/lib/host_keyblock2.c @@ -52,7 +52,7 @@ int vb2_keyblock_create(struct vb2_keyblock2 **kb_ptr, kb.c.total_size = kb.sig_offset + sig_size; /* Allocate buffer and copy header and data key */ - buf = malloc(kb.c.total_size); + buf = calloc(1, kb.c.total_size); if (!buf) { free(key); return VB2_KEYBLOCK_CREATE_ALLOC; |