14 lines
582 B
Diff
14 lines
582 B
Diff
Index: tboot-1.11.9/lcptools-v2/pconf_legacy.c
|
|
===================================================================
|
|
--- tboot-1.11.9.orig/lcptools-v2/pconf_legacy.c
|
|
+++ tboot-1.11.9/lcptools-v2/pconf_legacy.c
|
|
@@ -324,7 +324,7 @@ static lcp_policy_element_t *create(void
|
|
ERROR("Error: no pcrs were selected.\n");
|
|
return NULL;
|
|
}
|
|
- digest = malloc(SHA1_DIGEST_SIZE);
|
|
+ digest = malloc(sizeof(*digest));
|
|
if (digest == NULL) {
|
|
ERROR("Error: failed to allocate memory for digest buffer.\n");
|
|
return NULL;
|