From 18775b0ae37edc1a5906df006f0e0e5f7da66afe Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sun, 19 May 2019 23:27:30 +0100 Subject: fclose() configuration file if option not found. --- TODO | 4 ++++ config.c | 1 + 2 files changed, 5 insertions(+) diff --git a/TODO b/TODO index 613ded5..cac69bf 100644 --- a/TODO +++ b/TODO @@ -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 in blabouncer.c to make some operating systems and/or compilers happy. diff --git a/config.c b/config.c index b021f75..12237b3 100644 --- a/config.c +++ b/config.c @@ -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; } -- cgit v1.2.3