diff --git a/src/protocols/secure_channel/CASESession.cpp b/src/protocols/secure_channel/CASESession.cpp index 79c16adf81f762..a3ed29fe54ae83 100644 --- a/src/protocols/secure_channel/CASESession.cpp +++ b/src/protocols/secure_channel/CASESession.cpp @@ -210,7 +210,7 @@ CHIP_ERROR CASESession::EstablishSession(SessionManager & sessionManager, Fabric auto * fabricInfo = fabricTable->FindFabricWithIndex(peerScopedNodeId.GetFabricIndex()); ReturnErrorCodeIf(fabricInfo == nullptr, CHIP_ERROR_INVALID_ARGUMENT); - err = Init(sessionManager, policy, delegate, ScopedNodeId(peerNodeId, fabricIndex)); + err = Init(sessionManager, policy, delegate, peerScopedNodeId); mRole = CryptoContext::SessionRole::kInitiator;