Fix get session info return wrong session handle
Test:
~$ ipmitool -I lanplus -H 10.103.152.117 -U root -P 0penBmc sol activate
~$ ipmitool -I lanplus -H 10.103.152.147 -U root -P 0penBmc session info all
Signed-off-by: Brian Ma <chma0@nuvoton.com>
Change-Id: I8a6b29783ea26ff92c4f8cd73bbcef1a70e10c14
diff --git a/apphandler.cpp b/apphandler.cpp
index aba4abe..8e47288 100644
--- a/apphandler.cpp
+++ b/apphandler.cpp
@@ -1275,6 +1275,7 @@
return ipmi::response(completionCode);
}
maybeDetails = std::move(details);
+ break;
}
if (state == static_cast<uint8_t>(session::State::active) ||