From 4026e446d67cc1e1b08cdc43b5208416cfca8af0 Mon Sep 17 00:00:00 2001 From: Richard Marian Thomaiyar Date: Fri, 30 Nov 2018 16:44:15 +0530 Subject: 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 --- user_channel/usercommands.cpp | 1 + 1 file changed, 1 insertion(+) 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(request); size_t reqLength = *dataLen; + *dataLen = 0; if (!(reqLength == sizeof(*req) || (reqLength == (sizeof(*req) - sizeof(uint8_t) /* skip optional*/)))) -- cgit v1.2.1