aboutsummaryrefslogtreecommitdiff
path: root/Marshal_GetCommandAuditDigest.c
diff options
context:
space:
mode:
Diffstat (limited to 'Marshal_GetCommandAuditDigest.c')
-rw-r--r--Marshal_GetCommandAuditDigest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Marshal_GetCommandAuditDigest.c b/Marshal_GetCommandAuditDigest.c
index a71d6c1..4c63fd5 100644
--- a/Marshal_GetCommandAuditDigest.c
+++ b/Marshal_GetCommandAuditDigest.c
@@ -52,6 +52,9 @@ TPM_RC GetCommandAuditDigest_In_Unmarshal(GetCommandAuditDigest_In* target,
if (result != TPM_RC_SUCCESS) {
return result;
}
+ if ((result == TPM_RC_SUCCESS) && *size) {
+ result = TPM_RC_SIZE;
+ }
return result;
}