mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
set intf->abort to 0. fixes closing issue. fixed by Wes Bemont.
This commit is contained in:
parent
2d24d4e3fb
commit
c1b3c9d95a
@ -2207,6 +2207,7 @@ static int ipmi_lanplus_rakp3(struct ipmi_intf * intf)
|
||||
}
|
||||
}
|
||||
|
||||
intf->abort = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -2219,11 +2220,15 @@ void ipmi_lanplus_close(struct ipmi_intf * intf)
|
||||
{
|
||||
if (!intf->abort)
|
||||
impi_close_session_cmd(intf);
|
||||
|
||||
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