Fix event log prefix

We're not passing the prefixed version of the description to the event log.
Fix that.
This commit is contained in:
Matthew Garrett 2016-03-29 15:36:49 -07:00
parent 954fd730ca
commit aab446306b

View file

@ -13,7 +13,7 @@ grub_tpm_measure (unsigned char *buf, grub_size_t size, grub_uint8_t pcr,
char *desc = grub_xasprintf("%s %s", kind, description);
if (!desc)
return GRUB_ERR_OUT_OF_MEMORY;
ret = grub_tpm_log_event(buf, size, pcr, description);
ret = grub_tpm_log_event(buf, size, pcr, desc);
grub_free(desc);
return ret;
}