Skip to content

Commit f74d545

Browse files
Yossi LevyYossi Levy
authored andcommitted
When reading ROT from KVStore the return ROT key size was ignored
1 parent b895bf6 commit f74d545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/device_key/source/DeviceKey.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ int DeviceKey::read_key_from_kvstore(uint32_t *output, size_t &size)
169169
return DEVICEKEY_NOT_FOUND;
170170
}
171171

172-
int kvStatus = ((TDBStore *)inner_store)->reserved_data_get(output, size);
172+
int kvStatus = ((TDBStore *)inner_store)->reserved_data_get(output, size, &size);
173173
if (MBED_ERROR_ITEM_NOT_FOUND == kvStatus) {
174174
return DEVICEKEY_NOT_FOUND;
175175
}

0 commit comments

Comments
 (0)