Added reference counting to configuration values.

That is, to allow referencing to these values from proc_st
without fearing of them being invalidated on a config reload. We
perform a cleanup of these values on the server periodic check.
This commit is contained in:
Nikos Mavrogiannopoulos
2015-12-03 14:58:34 +01:00
committed by Nikos Mavrogiannopoulos
parent 2e68ba1158
commit 9252e22298
12 changed files with 119 additions and 95 deletions

View File

@@ -112,7 +112,7 @@ void cleanup_client_entries(sec_mod_st *sec);
#ifdef __GNUC__
# define seclog(sec, prio, fmt, ...) \
if (prio != LOG_DEBUG || sec->config->debug >= 3) { \
if (prio != LOG_DEBUG || sec->perm_config->debug >= 3) { \
syslog(prio, "sec-mod: "fmt, ##__VA_ARGS__); \
}
#else