Skip to content

Commit

Permalink
Bugfix: Linux KeyValueStoreManagerImpl::_Get was returning (#6327)
Browse files Browse the repository at this point in the history
CHIP_ERROR_BUFFER_TOO_SMALL when sufficient buffer was provided. Fixes
regression introduced by #5620
  • Loading branch information
jrhees-cae authored and pull[bot] committed Sep 9, 2021
1 parent 91f96df commit 2648005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/Linux/KeyValueStoreManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ CHIP_ERROR KeyValueStoreManagerImpl::_Get(const char * key, void * value, size_t
{
return CHIP_ERROR_PERSISTED_STORAGE_VALUE_NOT_FOUND;
}
else if (err != CHIP_NO_ERROR)
else if ((err != CHIP_NO_ERROR) && (err != CHIP_ERROR_BUFFER_TOO_SMALL))
{
return err;
}
Expand Down

0 comments on commit 2648005

Please sign in to comment.