diff options
Diffstat (limited to 'Marshal_PCR_Read.c')
-rw-r--r-- | Marshal_PCR_Read.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Marshal_PCR_Read.c b/Marshal_PCR_Read.c index 40ec293..e599bb7 100644 --- a/Marshal_PCR_Read.c +++ b/Marshal_PCR_Read.c @@ -47,6 +47,9 @@ TPM_RC PCR_Read_In_Unmarshal(PCR_Read_In* target, if (result != TPM_RC_SUCCESS) { return result; } + if ((result == TPM_RC_SUCCESS) && *size) { + result = TPM_RC_SIZE; + } return result; } |