mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-06-03 20:51:36 +00:00
ID: 299 - openipmi plugin writes zero to wrong byte
The intent is to zero the byte that no longer contains valid data (because the data was shifted one byte to the left). However, the wrong byte is being zeroed. One way this shows up is when displaying the descriptions with hpm compprop.
This commit is contained in:
@@ -390,7 +390,7 @@ ipmi_openipmi_send_cmd(struct ipmi_intf * intf, struct ipmi_rq * req)
|
||||
/* save response data for caller */
|
||||
if (rsp.ccode == 0 && rsp.data_len > 0) {
|
||||
memmove(rsp.data, rsp.data + 1, rsp.data_len);
|
||||
rsp.data[recv.msg.data_len] = 0;
|
||||
rsp.data[rsp.data_len] = 0;
|
||||
}
|
||||
|
||||
if (data != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user