From 7ffb32ce0bbc53e7262470fd485576818c38cb9e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 27 Apr 2020 16:17:24 +0100 Subject: [Minor] Allow to disable logging for modules on reload --- src/libserver/logger/logger.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libserver/logger') diff --git a/src/libserver/logger/logger.c b/src/libserver/logger/logger.c index 789a41af2..56b0c6d32 100644 --- a/src/libserver/logger/logger.c +++ b/src/libserver/logger/logger.c @@ -853,6 +853,8 @@ rspamd_logger_configure_modules (GHashTable *mods_enabled) gpointer k, v; guint id; + /* Clear all in bitset_allocated -> this are bytes not bits */ + memset (log_modules->bitset, 0, log_modules->bitset_allocated); /* On first iteration, we go through all modules enabled and add missing ones */ g_hash_table_iter_init (&it, mods_enabled); -- cgit v1.2.3