commit | 9557aa3da38a25d5195a8e6a54557cebd6b57fcf | [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 | f3d4a1b8f241f82522d2c4bc87cd9aa0d1a8f4d2 [diff] |
[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");