mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID:365 - Fix for ipmitool crash when using serial-terminal interface
Negative value returned by serial_read_line() function was not properly recognized, since the storage type was unsigned. This caused ipmitool crash in some sutuations. This patch fixes the problem. Commit for: Dmitry Bazhenov
This commit is contained in:
parent
e8450850e3
commit
a585af7e0c
@ -358,7 +358,7 @@ recv_response(struct ipmi_intf * intf, unsigned char *data, int len)
|
|||||||
{
|
{
|
||||||
char hex_rs[IPMI_SERIAL_MAX_RESPONSE * 3];
|
char hex_rs[IPMI_SERIAL_MAX_RESPONSE * 3];
|
||||||
int i, j, resp_len = 0;
|
int i, j, resp_len = 0;
|
||||||
unsigned long rv;
|
long rv;
|
||||||
char *p, *pp;
|
char *p, *pp;
|
||||||
char ch, str_hex[3];
|
char ch, str_hex[3];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user