Skip to content

Commit

Permalink
Fix initialization of NetworkProvisioning delegate (#3450)
Browse files Browse the repository at this point in the history
NetworkProvisioning::Init needs to initialize mDelegate to its
first argument.

This was dropped unintentionally in #3405
  • Loading branch information
mspang authored Oct 27, 2020
1 parent 960cfe0 commit 9299bc7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/transport/NetworkProvisioning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ namespace chip {

void NetworkProvisioning::Init(NetworkProvisioningDelegate * delegate, DeviceNetworkProvisioningDelegate * deviceDelegate)
{
if (deviceDelegate != nullptr)
{
mDeviceDelegate = deviceDelegate;
}
mDelegate = delegate;
mDeviceDelegate = deviceDelegate;
}

NetworkProvisioning::~NetworkProvisioning()
Expand Down

0 comments on commit 9299bc7

Please sign in to comment.