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

pull/10532/head
Yossi Levy 2019-04-30 17:44:24 +03:00 committed by adbridge
parent dba7b428e1
commit b5e406ae64
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;
}