summaryrefslogtreecommitdiffstats
path: root/src/fat_adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-11-28 08:16:35 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-11-28 08:16:35 +0100
commit547a352fb882a2f4c12f0595e50a5b3d1f5959fb (patch)
treeff2c8b9e54e57486f37173017275cf4c207396c9 /src/fat_adv.c
parent3afa4b973209b72d79af5167fd2113d312610ac2 (diff)
Close the log file before exit().
Diffstat (limited to 'src/fat_adv.c')
-rw-r--r--src/fat_adv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fat_adv.c b/src/fat_adv.c
index 68b49b3..4742c67 100644
--- a/src/fat_adv.c
+++ b/src/fat_adv.c
@@ -1103,6 +1103,7 @@ static void create_fat_boot_sector(disk_t *disk_car, partition_t *partition, con
break;
default:
log_critical("create_fat_boot_sector: severe error\n");
+ log_close();
exit(1);
}
if(part_size>partition->part_size/disk_car->sector_size)
@@ -1217,6 +1218,7 @@ static void create_fat_boot_sector(disk_t *disk_car, partition_t *partition, con
break;
default:
log_critical("create_fat_boot_sector: severe error\n");
+ log_close();
exit(1);
}
if(memcmp(newboot,orgboot,1*DEFAULT_SECTOR_SIZE)) /* Only compare the first sector */