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