mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
fix indexing corner case
This commit is contained in:
parent
219f67e41a
commit
56828dbaf7
@ -259,7 +259,7 @@ static struct ipmi_rs * ipmi_free_send_cmd(struct ipmi_intf * intf, struct ipmi_
|
||||
*/
|
||||
rs_len = 2;
|
||||
rs_buf[0] = 0;
|
||||
rs_buf[0] = 0xC1; /* invalid command */
|
||||
rs_buf[1] = 0xC1; /* invalid command */
|
||||
}
|
||||
#else /* !IPMI_INTF_FREE_BRIDGING */
|
||||
if (verbose > 3)
|
||||
@ -269,7 +269,7 @@ static struct ipmi_rs * ipmi_free_send_cmd(struct ipmi_intf * intf, struct ipmi_
|
||||
*/
|
||||
rs_len = 2;
|
||||
rs_buf[0] = 0;
|
||||
rs_buf[0] = 0xC1; /* invalid command */
|
||||
rs_buf[1] = 0xC1; /* invalid command */
|
||||
#endif /* !IPMI_INTF_FREE_BRIDGING */
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user