From f74d545a9dd4525aac2490b34bfaad026a8b4491 Mon Sep 17 00:00:00 2001 From: Yossi Levy Date: Tue, 30 Apr 2019 17:44:24 +0300 Subject: [PATCH] When reading ROT from KVStore the return ROT key size was ignored --- features/device_key/source/DeviceKey.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/device_key/source/DeviceKey.cpp b/features/device_key/source/DeviceKey.cpp index f49ca44e5e..bda0f8340d 100644 --- a/features/device_key/source/DeviceKey.cpp +++ b/features/device_key/source/DeviceKey.cpp @@ -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; }