When reading ROT from KVStore the return ROT key size was ignored

pull/10516/head
Yossi Levy 2019-04-30 17:44:24 +03:00
parent b895bf6349
commit f74d545a9d
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ int DeviceKey::read_key_from_kvstore(uint32_t *output, size_t &size)
return DEVICEKEY_NOT_FOUND;
}
int kvStatus = ((TDBStore *)inner_store)->reserved_data_get(output, size);
int kvStatus = ((TDBStore *)inner_store)->reserved_data_get(output, size, &size);
if (MBED_ERROR_ITEM_NOT_FOUND == kvStatus) {
return DEVICEKEY_NOT_FOUND;
}