diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-09-28 13:04:42 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-09-28 13:04:42 +0000 |
commit | 1005a56d90402e090fe938d655893e1a81d33089 (patch) | |
tree | 82330947213cd7a465232f5dfa2f385aa59b81ec /src | |
parent | 3de33ee4a550e63393babf43e046c17e0ffbd4d3 (diff) | |
download | mandi-1005a56d90402e090fe938d655893e1a81d33089.tar mandi-1005a56d90402e090fe938d655893e1a81d33089.tar.gz mandi-1005a56d90402e090fe938d655893e1a81d33089.tar.bz2 mandi-1005a56d90402e090fe938d655893e1a81d33089.tar.xz mandi-1005a56d90402e090fe938d655893e1a81d33089.zip |
fix saving whitelist
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/ifw/white_list.c | 2 |
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"); } |