aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Object_spt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Object_spt.c b/Object_spt.c
index dd37f1b..4cf13c7 100644
--- a/Object_spt.c
+++ b/Object_spt.c
@@ -533,6 +533,8 @@ PublicAttributesValidation(
OBJECT *parentObject = NULL;
if(HandleGetType(parentHandle) != TPM_HT_PERMANENT)
parentObject = ObjectGet(parentHandle);
+ if (publicArea->nameAlg == TPM_ALG_NULL)
+ return TPM_RC_HASH;
// Check authPolicy digest consistency
if( publicArea->authPolicy.t.size != 0
&& ( publicArea->authPolicy.t.size