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