SHA256
1
0
forked from pool/ipmitool
ipmitool/sdradd_close_file_handle.patch
OBS User autobuild 576167f497 Accepting request 34171 from systemsmanagement:wbem
Copy from systemsmanagement:wbem/ipmitool based on submit request 34171 from user coolo

OBS-URL: https://build.opensuse.org/request/show/34171
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ipmitool?expand=0&rev=10
2010-03-05 15:31:33 +00:00

23 lines
567 B
Diff

Fix unclosed file handle in ipmi_sdradd.c
References:
https://bugzilla.novell.com/show_bug.cgi?id=534909
Signed-off-by: Thomas Renninger <trenn@suse.de>
---
lib/ipmi_sdradd.c | 1 +
1 file changed, 1 insertion(+)
Index: ipmitool-1.8.11/lib/ipmi_sdradd.c
===================================================================
--- ipmitool-1.8.11.orig/lib/ipmi_sdradd.c
+++ ipmitool-1.8.11/lib/ipmi_sdradd.c
@@ -380,6 +380,7 @@ ipmi_sdr_read_records(const char *filena
queue->tail->next = sdrr;
queue->tail = sdrr;
}
+ close(fd);
return rc;
}