summaryrefslogtreecommitdiffstats
path: root/src/fnctdsk.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/fnctdsk.c
parent3afa4b973209b72d79af5167fd2113d312610ac2 (diff)
Close the log file before exit().
Diffstat (limited to 'src/fnctdsk.c')
-rw-r--r--src/fnctdsk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fnctdsk.c b/src/fnctdsk.c
index 8d158bb..3ec5738 100644
--- a/src/fnctdsk.c
+++ b/src/fnctdsk.c
@@ -215,6 +215,7 @@ int check_list_part(list_part_t *list_part)
if((list_part!=NULL) && (list_part->prev!=NULL))
{
log_critical("\ncheck_list_part error: list_part->prev!=NULL\n");
+ log_close();
exit(EXIT_FAILURE);
}
log_trace("check_list_part\n");
@@ -224,6 +225,7 @@ int check_list_part(list_part_t *list_part)
if(prev!=parts->prev)
{
log_critical("\ncheck_list_part error: prev!=parts->prev\n");
+ log_close();
exit(EXIT_FAILURE);
}
prev=parts;
@@ -231,6 +233,7 @@ int check_list_part(list_part_t *list_part)
if((prev!=NULL) && (prev->next!=NULL))
{
log_critical("\ncheck_list_part error: prev->next!=NULL\n");
+ log_close();
exit(EXIT_FAILURE);
}
return 0;