summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2018-11-30 16:44:15 +0530
committerRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2018-12-12 11:09:07 +0530
commit4026e446d67cc1e1b08cdc43b5208416cfca8af0 (patch)
tree6c85b7fe7acc0b162aef4a9488f9c850bb04ed39
parent047412cfb1d82a92d7b032bd9aa00ce48347c076 (diff)
downloadphosphor-host-ipmid-4026e446d67cc1e1b08cdc43b5208416cfca8af0.tar.gz
phosphor-host-ipmid-4026e446d67cc1e1b08cdc43b5208416cfca8af0.zip
Fix response length for Set user access command
Fixed set user access command to respond with completion code. Unit-Test: 1. Verified the response data for Set user access command issued in raw format and made sure that only completion code is returned. Change-Id: Iab3ea28ddd509e2ecc76a43c80bc7068e368c43e Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
-rw-r--r--user_channel/usercommands.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/user_channel/usercommands.cpp b/user_channel/usercommands.cpp
index 84e9456..f81c093 100644
--- a/user_channel/usercommands.cpp
+++ b/user_channel/usercommands.cpp
@@ -160,6 +160,7 @@ ipmi_ret_t ipmiSetUserAccess(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
{
const SetUserAccessReq* req = static_cast<SetUserAccessReq*>(request);
size_t reqLength = *dataLen;
+ *dataLen = 0;
if (!(reqLength == sizeof(*req) ||
(reqLength == (sizeof(*req) - sizeof(uint8_t) /* skip optional*/))))
OpenPOWER on IntegriCloud