message_parsers: Use local session instance
In message_parsers, it was calling `getSession()` in a few functions,
which is not necessary because the caller already has the session
instance.
Add the `session` as the argument of the functions so that it does not
need to call `getSession()` again.
This also fixes the issue that the session is removed in the session
manager and throws in `getSession()`, see details in the previous commit.
Tested: No logic changes, verify build is OK, and ipmi lanplus commands
are working OK.
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: Ibaf38ce86cad9f421a672aeb4304246aa9aa1e49
2 files changed