Make sure hasher exists before trying to destroy it
This commit is contained in:
@@ -1182,7 +1182,7 @@ METHOD(attest_db_t, add, bool,
|
|||||||
if (!measurements)
|
if (!measurements)
|
||||||
{
|
{
|
||||||
printf("file measurement failed\n");
|
printf("file measurement failed\n");
|
||||||
hasher->destroy(hasher);
|
DESTROY_IF(hasher);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (this->fid && this->relative)
|
if (this->fid && this->relative)
|
||||||
|
|||||||
Reference in New Issue
Block a user