Index: ipmitool-1.8.11/src/plugins/lan/lan.c =================================================================== --- ipmitool-1.8.11.orig/src/plugins/lan/lan.c +++ ipmitool-1.8.11/src/plugins/lan/lan.c @@ -1071,7 +1071,7 @@ uint8_t * ipmi_lan_build_sol_msg(struct msg = malloc(len); if (msg == NULL) { lprintf(LOG_ERR, "ipmitool: malloc failure"); - return; + return msg; } memset(msg, 0, len); Index: ipmitool-1.8.11/src/plugins/lanplus/lanplus.c =================================================================== --- ipmitool-1.8.11.orig/src/plugins/lanplus/lanplus.c +++ ipmitool-1.8.11/src/plugins/lanplus/lanplus.c @@ -734,7 +734,7 @@ ipmi_lan_poll_recv(struct ipmi_intf * in ipmi_req_remove_entry(rsp->payload.ipmi_response.rq_seq, rsp->payload.ipmi_response.cmd); ipmi_lan_poll_recv(intf); - return; + return NULL; } else {