From 99bd5e77fb24865753fc551df6cd37bb903c79cb Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 8 Mar 2020 16:30:38 +0100 Subject: [PATCH] Client statement reinitialization has been moved into gravityDB_open(). No need to call it twice in FTL_reload_all_domainlists(). Signed-off-by: DL6ER --- src/datastructure.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/datastructure.c b/src/datastructure.c index 168f4c5e..9b550a52 100644 --- a/src/datastructure.c +++ b/src/datastructure.c @@ -372,8 +372,6 @@ void FTL_reload_all_domainlists(void) // (Re-)open gravity database connection gravityDB_close(); gravityDB_open(); - // gravityDB_close() has finalized all prepared statements, reinitialize them - gravityDB_reload_client_statements(); // Reset number of blocked domains counters->gravity = gravityDB_count(GRAVITY_TABLE);