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