From 3dbe23af62eb1d6a0cc81088cd375b38ba715199 Mon Sep 17 00:00:00 2001 From: cbucht200 <100870495+cbucht200@users.noreply.github.com> Date: Thu, 29 Jun 2023 14:59:11 -0400 Subject: [PATCH] Server should store the pointer to the session keystore, so that the GetSessionKeystore API works as expected (#27552) --- src/app/server/Server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/server/Server.cpp b/src/app/server/Server.cpp index 0793832d17271c..5eff5ea0be7344 100644 --- a/src/app/server/Server.cpp +++ b/src/app/server/Server.cpp @@ -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) { @@ -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);