forked from pool/ipmitool
c93ca60884
OBS-URL: https://build.opensuse.org/request/show/82092 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ipmitool?expand=0&rev=15
27 lines
940 B
Diff
27 lines
940 B
Diff
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
|
|
{
|