aboutsummaryrefslogtreecommitdiff
path: root/Marshal_ContextLoad.c
diff options
context:
space:
mode:
Diffstat (limited to 'Marshal_ContextLoad.c')
-rw-r--r--Marshal_ContextLoad.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Marshal_ContextLoad.c b/Marshal_ContextLoad.c
index 426cfe9..915191e 100644
--- a/Marshal_ContextLoad.c
+++ b/Marshal_ContextLoad.c
@@ -44,6 +44,9 @@ TPM_RC ContextLoad_In_Unmarshal(ContextLoad_In* target,
if (result != TPM_RC_SUCCESS) {
return result;
}
+ if ((result == TPM_RC_SUCCESS) && *size) {
+ result = TPM_RC_SIZE;
+ }
return result;
}