diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-05-19 23:27:30 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-05-19 23:27:30 +0100 |
commit | 18775b0ae37edc1a5906df006f0e0e5f7da66afe (patch) | |
tree | 37e726fbb7bd48c9d123137123324ff7453e671d | |
parent | f4bd7d7f2233e5e16b4e809898ef7a241fbf16ae (diff) |
fclose() configuration file if option not found.
-rw-r--r-- | TODO | 4 | ||||
-rw-r--r-- | config.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -10,3 +10,7 @@ Add various auto replay options: - All logs since the current client last disconnected (track clients with some special token the client auto sends on connect) Allow log replay time to be specified with days:hours:minutes:seconds. + +Allow connecting to a passworded server. + +Might need to #include <limits.h> in blabouncer.c to make some operating systems and/or compilers happy. @@ -49,6 +49,7 @@ int getconfstr(char *confname, char *filename, char* dest) { if (!found) { printf("Error reading configuration option '%s', did not find it in configuration file '%s'.\n", confname, filename); + fclose(fp); return 0; } |