diff options
Diffstat (limited to 'src/plugins/lanplus/lanplus.c')
-rw-r--r-- | src/plugins/lanplus/lanplus.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/lanplus/lanplus.c b/src/plugins/lanplus/lanplus.c index 27b9610..0bff5b2 100644 --- a/src/plugins/lanplus/lanplus.c +++ b/src/plugins/lanplus/lanplus.c @@ -3291,12 +3291,7 @@ ipmi_lanplus_close(struct ipmi_intf * intf) close(intf->fd); ipmi_req_clear_entries(); - - if (intf->session) { - free(intf->session); - intf->session = NULL; - } - + ipmi_intf_session_cleanup(intf); intf->session = NULL; intf->opened = 0; intf->manufacturer_id = IPMI_OEM_UNKNOWN; @@ -3367,7 +3362,6 @@ ipmi_lanplus_open(struct ipmi_intf * intf) return -1; session = intf->session; - if (!session->port) session->port = IPMI_LANPLUS_PORT; if (!session->privlvl) |