summaryrefslogtreecommitdiffstats
path: root/ipmid-new.cpp
diff options
context:
space:
mode:
authorVernon Mauery <vernon.mauery@linux.intel.com>2019-03-21 13:02:05 -0700
committerVernon Mauery <vernon.mauery@linux.intel.com>2019-03-21 13:03:54 -0700
commitbe376306918e84f411c1e4bdba15ec5b6a2219dc (patch)
tree79f0a817791a0e426962fc46dbfa3c2b575d9426 /ipmid-new.cpp
parent1b7f6f2d01b955cecb79eea8cc21f6fe387ce1f1 (diff)
downloadphosphor-host-ipmid-be376306918e84f411c1e4bdba15ec5b6a2219dc.tar.gz
phosphor-host-ipmid-be376306918e84f411c1e4bdba15ec5b6a2219dc.zip
Add user context parameter to legacy ipmi handler registration
This part was originally omitted, but needed by some external provider libraries. This will more closely mimic the behavior of ipmid prior to the architecture update. Change-Id: I5db35222e268a117480285c700d88206d6505d92 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
Diffstat (limited to 'ipmid-new.cpp')
-rw-r--r--ipmid-new.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipmid-new.cpp b/ipmid-new.cpp
index 24d1ce5..ed45173 100644
--- a/ipmid-new.cpp
+++ b/ipmid-new.cpp
@@ -461,7 +461,7 @@ void ipmi_register_callback(ipmi_netfn_t netFn, ipmi_cmd_t cmd,
ipmi_context_t context, ipmid_callback_t handler,
ipmi_cmd_privilege_t priv)
{
- auto h = ipmi::makeLegacyHandler(handler);
+ auto h = ipmi::makeLegacyHandler(handler, context);
// translate priv from deprecated enum to current
ipmi::Privilege realPriv;
switch (priv)
OpenPOWER on IntegriCloud