Make sure hasher exists before trying to destroy it
This commit is contained in:
1 parent
2a43350334
commit
31cc325fce
1 file changed
+1
-1
@@ -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