mirror of
https://github.com/stefanberger/libtpms
synced 2026-08-09 10:06:13 +00:00
Revert "Object: clear out sensitive area if on load if not provided"
This reverts commite82727e546. The issue has previously been resolved in commit17255da54c. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
87683f9ec4
commit
f73ee6c3bf
@ -460,10 +460,7 @@ ObjectLoad(
|
||||
object->publicArea = *publicArea;
|
||||
// If there is a sensitive area, load it
|
||||
if(sensitive == NULL)
|
||||
{ // libtpms changed begin
|
||||
object->attributes.publicOnly = SET;
|
||||
MemorySet(&object->sensitive, 0, sizeof(object->sensitive)); // needed for libtpms.
|
||||
} // libtpms changed end
|
||||
object->attributes.publicOnly = SET;
|
||||
else
|
||||
{
|
||||
object->sensitive = *sensitive;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user