summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/channel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/channel.cpp b/app/channel.cpp
index 1fa5b52..51e953d 100644
--- a/app/channel.cpp
+++ b/app/channel.cpp
@@ -128,6 +128,12 @@ ipmi::RspType<uint8_t, // Channel Number
{
return ipmi::responseInvalidFieldRequest();
}
+ if (!ipmi::isValidPayloadType(static_cast<ipmi::PayloadType>(payloadType)))
+ {
+ log<level::DEBUG>("Get channel cipher suites - Invalid payload type");
+ constexpr uint8_t ccPayloadTypeNotSupported = 0x80;
+ return ipmi::response(ccPayloadTypeNotSupported);
+ }
if (!recordInit)
{
OpenPOWER on IntegriCloud