From 541beab7ce4ab0c83274a0649cf9be190097743e Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 14 Aug 2012 14:32:16 +0800 Subject: [PATCH] sbsiglist: Fix SignatureSize We need to allow for the GUID in EFI_SIGNATURE_DATA too. Signed-off-by: Jeremy Kerr --- src/sbsiglist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbsiglist.c b/src/sbsiglist.c index ab52914..5be49ac 100644 --- a/src/sbsiglist.c +++ b/src/sbsiglist.c @@ -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;