sensorhandler: correctly report data length in Reserve SDR
Change-Id: I30a2641dcb548a3ff5141f7688942a748c458070
Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
diff --git a/sensorhandler.cpp b/sensorhandler.cpp
index d8cd0d4..53eb6d6 100644
--- a/sensorhandler.cpp
+++ b/sensorhandler.cpp
@@ -639,6 +639,7 @@
// A constant reservation ID is okay until we implement add/remove SDR.
const uint16_t reservation_id = 1;
*(uint16_t*)response = reservation_id;
+ *data_len = sizeof(uint16_t);
printf("Created new IPMI SDR reservation ID %d\n", *(uint16_t*)response);
return IPMI_CC_OK;