aboutsummaryrefslogtreecommitdiff
path: root/Marshal_ECDH_KeyGen.c
diff options
context:
space:
mode:
Diffstat (limited to 'Marshal_ECDH_KeyGen.c')
-rw-r--r--Marshal_ECDH_KeyGen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Marshal_ECDH_KeyGen.c b/Marshal_ECDH_KeyGen.c
index e81286b..0498342 100644
--- a/Marshal_ECDH_KeyGen.c
+++ b/Marshal_ECDH_KeyGen.c
@@ -42,6 +42,9 @@ TPM_RC ECDH_KeyGen_In_Unmarshal(ECDH_KeyGen_In* target,
TPM_RC result = TPM_RC_SUCCESS;
// Get request handles from request_handles array.
target->keyHandle = request_handles[0];
+ if ((result == TPM_RC_SUCCESS) && *size) {
+ result = TPM_RC_SIZE;
+ }
return result;
}