mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-28 19:37:21 +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_len = 2;
|
||||||
rs_buf[0] = 0;
|
rs_buf[0] = 0;
|
||||||
rs_buf[0] = 0xC1; /* invalid command */
|
rs_buf[1] = 0xC1; /* invalid command */
|
||||||
}
|
}
|
||||||
#else /* !IPMI_INTF_FREE_BRIDGING */
|
#else /* !IPMI_INTF_FREE_BRIDGING */
|
||||||
if (verbose > 3)
|
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_len = 2;
|
||||||
rs_buf[0] = 0;
|
rs_buf[0] = 0;
|
||||||
rs_buf[0] = 0xC1; /* invalid command */
|
rs_buf[1] = 0xC1; /* invalid command */
|
||||||
#endif /* !IPMI_INTF_FREE_BRIDGING */
|
#endif /* !IPMI_INTF_FREE_BRIDGING */
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user