mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID: 273 - SOL Input buffer size. Reduce max_inbound_payload_size by the SOL
header size. Committed for Liebig, Holger
This commit is contained in:
parent
49350157fe
commit
3d9c5ae746
@ -1544,6 +1544,10 @@ ipmi_sol_red_pill(struct ipmi_intf * intf, int instance)
|
|||||||
int keepAliveRet = 0;
|
int keepAliveRet = 0;
|
||||||
int retrySol = 0;
|
int retrySol = 0;
|
||||||
|
|
||||||
|
/* Subtract SOL header from max_inbound_payload_size */
|
||||||
|
if (buffer_size > 4)
|
||||||
|
buffer_size -= 4;
|
||||||
|
|
||||||
buffer = (char*)malloc(buffer_size);
|
buffer = (char*)malloc(buffer_size);
|
||||||
if (buffer == NULL) {
|
if (buffer == NULL) {
|
||||||
lprintf(LOG_ERR, "ipmitool: malloc failure");
|
lprintf(LOG_ERR, "ipmitool: malloc failure");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user