Skip to content

Commit

Permalink
Fix initialization of NetworkProvisioning delegate
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 project-chip#3405
  • Loading branch information
mspang committed Oct 27, 2020
1 parent 960cfe0 commit f64d9e6
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 f64d9e6

Please sign in to comment.