sbsiglist: Fix SignatureSize

We need to allow for the GUID in EFI_SIGNATURE_DATA too.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
Jeremy Kerr 2012-08-14 14:32:16 +08:00
parent 9389752741
commit 541beab7ce

View file

@ -151,7 +151,7 @@ static int siglist_create(struct siglist_context *ctx)
siglist->SignatureType = ctx->type->guid;
siglist->SignatureListSize = size;
siglist->SignatureHeaderSize = 0;
siglist->SignatureSize = ctx->data_len;
siglist->SignatureSize = ctx->data_len + sizeof(*sigdata);
sigdata->SignatureOwner = ctx->owner;