Skip to content

Commit

Permalink
Server should store the pointer to the session keystore, so that the …
Browse files Browse the repository at this point in the history
…GetSessionKeystore API works as expected (#27552)
  • Loading branch information
cbucht200 authored and pull[bot] committed Jan 30, 2024
1 parent 5e3ca56 commit 6249029
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/server/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ CHIP_ERROR Server::Init(const ServerInitParams & initParams)
mSubscriptionResumptionStorage = initParams.subscriptionResumptionStorage;
mOperationalKeystore = initParams.operationalKeystore;
mOpCertStore = initParams.opCertStore;
mSessionKeystore = initParams.sessionKeystore;

if (initParams.certificateValidityPolicy)
{
Expand Down Expand Up @@ -205,7 +206,7 @@ CHIP_ERROR Server::Init(const ServerInitParams & initParams)
SuccessOrExit(err);

err = mSessions.Init(&DeviceLayer::SystemLayer(), &mTransports, &mMessageCounterManager, mDeviceStorage, &GetFabricTable(),
*initParams.sessionKeystore);
*mSessionKeystore);
SuccessOrExit(err);

err = mFabricDelegate.Init(this);
Expand Down

0 comments on commit 6249029

Please sign in to comment.