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