diff options
author | Nan Li <william.bjlinan@hotmail.com> | 2016-08-29 00:11:10 +0800 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-09-09 20:54:57 +0000 |
commit | 70aa8d9677b13eb97e71bc758a09e14e37053565 (patch) | |
tree | e42b5465c43bb01fd44ee0c840a89558d694a41f /apphandler.cpp | |
parent | 37af73315c3e1ff504db466b10e6269cc56dcc6c (diff) | |
download | phosphor-host-ipmid-70aa8d9677b13eb97e71bc758a09e14e37053565.tar.gz phosphor-host-ipmid-70aa8d9677b13eb97e71bc758a09e14e37053565.zip |
Modify respond of un-supported IPMI command
A number of callbacks are registered for 'WILDCARD' types, which
currently do nothing except respond with CC_OK(00h). Change complete
codes to CC_INVALID(C1h).
Resolves openbmc/openbmc#469.
Change-Id: I91ea5ee1a23284a4159ff1c1867342e89c6fa444
Signed-off-by: Nan Li <william.bjlinan@hotmail.com>
Diffstat (limited to 'apphandler.cpp')
-rw-r--r-- | apphandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apphandler.cpp b/apphandler.cpp index 8da85e4..7b64c76 100644 --- a/apphandler.cpp +++ b/apphandler.cpp @@ -556,7 +556,7 @@ ipmi_ret_t ipmi_app_wildcard_handler(ipmi_netfn_t netfn, ipmi_cmd_t cmd, printf("Handling WILDCARD Netfn:[0x%X], Cmd:[0x%X]\n",netfn, cmd); // Status code. - ipmi_ret_t rc = IPMI_CC_OK; + ipmi_ret_t rc = IPMI_CC_INVALID; *data_len = strlen("THIS IS WILDCARD"); |