minor changes to close function (copying lan interface close)

This commit is contained in:
Jeremy Ellington 2004-06-03 13:57:42 +00:00
parent 4168b3c939
commit c8454885b6

View File

@ -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;
}