Skip to content

Commit

Permalink
Fix chip-tool crash in case of commissioning ethernet device. Need to…
Browse files Browse the repository at this point in the history
… figure out what SetupNetwork() should do in case of Ethernet, for now do nothing (#7753)
  • Loading branch information
SergeyVasiliev authored and pull[bot] committed Aug 31, 2021
1 parent b4adc1c commit 5223817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chip-tool/commands/pairing/PairingCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ CHIP_ERROR PairingCommand::SetupNetwork()
switch (mNetworkType)
{
case PairingNetworkType::None:
case PairingNetworkType::Ethernet:
// Nothing to do
SetCommandExitStatus(err == CHIP_NO_ERROR);
break;
case PairingNetworkType::WiFi:
case PairingNetworkType::Ethernet:
case PairingNetworkType::Thread:
err = GetExecContext()->commissioner->GetDevice(mRemoteId, &mDevice);
VerifyOrExit(err == CHIP_NO_ERROR, ChipLogError(chipTool, "Setup failure! No pairing for device: %" PRIu64, mRemoteId));
Expand Down

0 comments on commit 5223817

Please sign in to comment.