commit | 322127413e6eef6dead82f2d0ef5dcab50472f4f | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Wed Dec 30 07:33:23 2009 +0100 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Wed Dec 30 07:33:23 2009 +0100 |
tree | 18fee251a11088549ba906fca26b154b9b34ffc0 | |
parent | dade8980e36a063f78e8cdcafe38d40552d0384a [diff] [blame] |
[ipaccess] Close the firmware file as well
diff --git a/openbsc/src/ipaccess/ipaccess-config.c b/openbsc/src/ipaccess/ipaccess-config.c index cec7664..2577c49 100644 --- a/openbsc/src/ipaccess/ipaccess-config.c +++ b/openbsc/src/ipaccess/ipaccess-config.c
@@ -414,6 +414,10 @@ } ipaccess_analyze_file(fd, stat.st_size, 0, entry); + if (close(fd) != 0) { + perror("Close failed.\n"); + return; + } llist_for_each_entry(header, entry, entry) { printf("Printing header information:\n");