File ipmitool-sol_memleak.patch of Package ipmitool.3806

--- src/plugins/lanplus/lanplus.c
+++ src/plugins/lanplus/lanplus.c
@@ -2096,7 +2096,7 @@
 						  struct ipmi_v2_payload * payload)
 {
 	struct ipmi_rs      * rsp = NULL;
-	uint8_t             * msg_data;
+	uint8_t             * msg_data = NULL;
 	int                   msg_length;
 	struct ipmi_session * session = intf->session;
 	int                   try = 0;
@@ -2326,6 +2326,7 @@
 	case IPMI_PAYLOAD_TYPE_RMCP_OPEN_REQUEST:
 	case IPMI_PAYLOAD_TYPE_RAKP_1:
 	case IPMI_PAYLOAD_TYPE_RAKP_3:
+	case IPMI_PAYLOAD_TYPE_SOL:
 		free(msg_data);
 		msg_data = NULL;
 		break;
openSUSE Build Service is sponsored by