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:
Zdenek Styblik 2012-11-21 09:07:30 +00:00
parent fc62075b76
commit 3018b229b1

View File

@ -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;
}