fix indexing corner case

This commit is contained in:
Albert Chu 2012-05-10 16:35:33 +00:00
parent 219f67e41a
commit 56828dbaf7

View File

@ -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 {