Skip to content

Commit 0f4261f

Browse files
Treat CHIP_ERROR_BUFFER_TOO_SMALL the same
1 parent 065118f commit 0f4261f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/ReadClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ CHIP_ERROR ReadClient::BuildDataVersionFilterList(DataVersionFilterIBs::Builder
430430
{
431431
aEncodedDataVersionList = true;
432432
}
433-
else if (err == CHIP_ERROR_NO_MEMORY)
433+
else if (err == CHIP_ERROR_NO_MEMORY || err == CHIP_ERROR_BUFFER_TOO_SMALL)
434434
{
435435
// Packet is full, ignore the rest of the list
436436
aDataVersionFilterIBsBuilder.Rollback(backup);

0 commit comments

Comments
 (0)