Commit 0914937e authored by Dimitris Lampridis's avatar Dimitris Lampridis

libipmi: bugfix for #952

When called more than once in a Python program ipmi_file_open function causes exception.

To reproduce:
ipmi_file_open
ipmi_file_close
ipmi_file_open -> exception

The solution is to remove

if (f)
   fclose(f);

from ipmi_file_open function
parent 5c26daca
......@@ -15,8 +15,6 @@ struct dc_output_list *dcol = NULL;
int ipmi_file_open(const char *name)
{
if (f)
fclose(f);
f = fopen(name, "w");
if (!f)
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment