summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/ifw/white_list.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/ifw/white_list.c b/src/plugins/ifw/white_list.c
index 4318abc..9148047 100644
--- a/src/plugins/ifw/white_list.c
+++ b/src/plugins/ifw/white_list.c
@@ -94,6 +94,7 @@ void white_list_load(white_list_t *list, const char *filepath) {
fprintf(stderr, "unable to parse IP address in white list: %s\n", addr_str);
}
}
+ fclose(fp);
} else {
fprintf(stderr, "unable to open white list file\n");
}
@@ -113,6 +114,7 @@ void white_list_save(white_list_t *list, const char *filepath) {
fprintf(fp, "%15s\n", inet_ntoa(addr));
printf("adding IP address in white list: %s\n", inet_ntoa(addr));
}
+ fclose(fp);
} else {
fprintf(stderr, "unable to write white list file\n");
}