We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bbf5b9 commit ea62667Copy full SHA for ea62667
src/app/CommandHandlerImpl.h
@@ -294,7 +294,13 @@ class CommandHandlerImpl : public CommandHandler
294
{
295
return CHIP_NO_ERROR;
296
}
297
- ReturnErrorOnFailure(RollbackResponse());
+ // Here the err from previous step is returned intentionally if RollBackResonse fails due to
298
+ // running out of packet buffers i.e due to CHIP_ERROR_NO_MEMORY in AllocateBuffer() and
299
+ // fails to set the mRollBackBackupValid.
300
+ if (RollbackResponse() != CHIP_NO_ERROR)
301
+ {
302
+ return err;
303
+ }
304
// If we failed to add a command due to lack of space in the
305
// packet, we will make another attempt to add the response using
306
// an additional InvokeResponseMessage.
0 commit comments