Skip to content

Commit 2648005

Browse files
jrhees-caepull[bot]
authored andcommitted
Bugfix: Linux KeyValueStoreManagerImpl::_Get was returning (#6327)
CHIP_ERROR_BUFFER_TOO_SMALL when sufficient buffer was provided. Fixes regression introduced by #5620
1 parent 91f96df commit 2648005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/Linux/KeyValueStoreManagerImpl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ CHIP_ERROR KeyValueStoreManagerImpl::_Get(const char * key, void * value, size_t
5252
{
5353
return CHIP_ERROR_PERSISTED_STORAGE_VALUE_NOT_FOUND;
5454
}
55-
else if (err != CHIP_NO_ERROR)
55+
else if ((err != CHIP_NO_ERROR) && (err != CHIP_ERROR_BUFFER_TOO_SMALL))
5656
{
5757
return err;
5858
}

0 commit comments

Comments
 (0)