diff options
author | Robin van der Gracht <robin@protonic.nl> | 2021-01-07 08:50:07 +0100 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2021-01-07 16:54:28 +0100 |
commit | a3c511dfb29d3e2d7bb20aba7f51e9f353df9d33 (patch) | |
tree | 3b9e29b7223acace986971c7535e6150313ec564 | |
parent | a1bc38c87d17705fafa716b12ec1abaf910ecd78 (diff) |
ta: pkcs11: Change sizeof argument for consistency
The bytes subtracted here were added a few lines ago. Since *db_objs
was used there we should also do this here for readability.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Robin van der Gracht <robin@protonic.nl>
-rw-r--r-- | ta/pkcs11/src/persistent_token.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ta/pkcs11/src/persistent_token.c b/ta/pkcs11/src/persistent_token.c index 9a964c3b..aecddea7 100644 --- a/ta/pkcs11/src/persistent_token.c +++ b/ta/pkcs11/src/persistent_token.c @@ -356,7 +356,7 @@ struct ck_token *init_persistent_db(unsigned int token_id) goto error; db_objs = ptr; - size -= sizeof(struct token_persistent_objs); + size -= sizeof(*db_objs); res = TEE_ReadObjectData(db_hdl, db_objs->uuids, size, &size); if (res || size != (db_objs->count * sizeof(TEE_UUID))) TEE_Panic(0); |