Skip to content

Commit

Permalink
Fix chip-tool remove-keyset command.
Browse files Browse the repository at this point in the history
We were returning without calling SetCommandExitStatus if removing group keys
_succeeded_, which is backwards.

Fixes #27600
  • Loading branch information
bzbarsky-apple committed Jul 6, 2023
1 parent 0d1f9c3 commit a577788
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/chip-tool/commands/group/Commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,7 @@ class RemoveKeySet : public CHIPCommand
}
iter->Release();

if (err == CHIP_NO_ERROR)
{
return err;
}
ReturnErrorOnFailure(err);
ReturnErrorOnFailure(groupDataProvider->RemoveKeySet(fabricIndex, keysetId));

SetCommandExitStatus(CHIP_NO_ERROR);
Expand Down

0 comments on commit a577788

Please sign in to comment.