Use pldm_msg_hdr_correlate_response()
This call to ensure the PLDM response matches the PLDM request for the
HRESET, OCC Reset, and Sensor Status requests.
If it does not match, the response is ignored.
Tested on Rainier
Change-Id: Id072aa79518752c11eb0f3108cd4066cfa1baa85
Signed-off-by: Chris Cain <cjcain@us.ibm.com>
diff --git a/pldm.hpp b/pldm.hpp
index 4d2873f..0ba1067 100644
--- a/pldm.hpp
+++ b/pldm.hpp
@@ -287,6 +287,11 @@
TransportImpl impl;
+ /**
+ * @brief The header for the most recent request.
+ */
+ pldm_msg_hdr _requestHeader{};
+
/** @brief The response for the PLDM request msg is received flag.
*/
bool pldmResponseReceived = false;