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