mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID: 3588726 - % ipmitool sol payload status ...; segfaults on no rsp
Commit fixes segafult in ipmi_sol_payload_access_status in 'lib/ipmi_sol.c' when no response is received. This is caused by passing NULL to lprintf() as parameter, resp. accessing response data that aren't there. Reported by: Ales Ledvinka
This commit is contained in:
parent
fc62075b76
commit
3018b229b1
@ -163,8 +163,7 @@ ipmi_sol_payload_access_status(struct ipmi_intf * intf,
|
||||
rsp = intf->sendrecv(intf, &req);
|
||||
|
||||
if (rsp == NULL) {
|
||||
lprintf(LOG_ERR, "Error: Unexpected data length (%d) received",
|
||||
rsp->data_len);
|
||||
lprintf(LOG_ERR, "No valid response received.");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user