mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
minor changes to close function (copying lan interface close)
This commit is contained in:
parent
4168b3c939
commit
c8454885b6
@ -2219,8 +2219,13 @@ void ipmi_lanplus_close(struct ipmi_intf * intf)
|
||||
{
|
||||
if (!intf->abort)
|
||||
impi_close_session_cmd(intf);
|
||||
close(intf->fd);
|
||||
if (intf->fd >= 0)
|
||||
close(intf->fd);
|
||||
ipmi_req_clear_entries();
|
||||
if (intf->session)
|
||||
free(intf->session);
|
||||
intf->session = NULL;
|
||||
intf = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user