summaryrefslogtreecommitdiffstats
path: root/command/session_cmds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'command/session_cmds.cpp')
-rw-r--r--command/session_cmds.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/command/session_cmds.cpp b/command/session_cmds.cpp
index fb2d074..d363c1e 100644
--- a/command/session_cmds.cpp
+++ b/command/session_cmds.cpp
@@ -23,9 +23,8 @@ std::vector<uint8_t>
response->completionCode = IPMI_CC_OK;
uint8_t reqPrivilegeLevel = request->reqPrivLevel;
- auto session = (std::get<session::Manager&>(singletonPool)
- .getSession(handler.sessionID))
- .lock();
+ auto session = std::get<session::Manager&>(singletonPool)
+ .getSession(handler.sessionID);
if (reqPrivilegeLevel == 0) // Just return present privilege level
{
OpenPOWER on IntegriCloud