summaryrefslogtreecommitdiff
path: root/src/plugins/lanplus/lanplus.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-01 12:15:48 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-01 12:15:48 +0100
commit55031e72e6c02b4ae63e9052bad1a4b40002ac18 (patch)
treecedb261f63df285e392051805d7e06641c74a4d5 /src/plugins/lanplus/lanplus.c
parentb32d92e890caac903491116e9d817aa780c0323b (diff)
Imported Upstream version 1.8.15upstream/1.8.15
Diffstat (limited to 'src/plugins/lanplus/lanplus.c')
-rw-r--r--src/plugins/lanplus/lanplus.c8
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)