diff options
author | Zdenek Styblik <stybla@turnovfree.net> | 2014-03-27 20:29:44 +0100 |
---|---|---|
committer | Zdenek Styblik <stybla@turnovfree.net> | 2014-03-27 20:29:44 +0100 |
commit | 2c7a5f91efafea1fa8721a05e79400967b1b5c55 (patch) | |
tree | 41ecc5dacab3fdfc7e48b9e2d64b75bcb582a095 | |
parent | 9e3dba7e976939e5e9a4b4be7909aa8772d13bca (diff) | |
download | ipmitool-2c7a5f91efafea1fa8721a05e79400967b1b5c55.tar.gz |
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.
-rw-r--r-- | src/plugins/open/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/open/open.c b/src/plugins/open/open.c index 0fd8c9e..fe1fd75 100644 --- a/src/plugins/open/open.c +++ b/src/plugins/open/open.c @@ -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) { |