[ipaccess] Close the firmware file as well

This commit is contained in:
Holger Hans Peter Freyther 2009-12-30 07:33:23 +01:00
parent dade8980e3
commit 322127413e
1 changed files with 4 additions and 0 deletions

View File

@ -414,6 +414,10 @@ static void analyze_firmware(const char *filename)
}
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");