filter_token tok = filter_tokenize(type, m_strlen(type));
CHECK_FILTER(tok);
- syslog(LOG_INFO, "filter type %s registered", type);
+ syslog(LOG_DEBUG, "filter type %s registered", type);
runners[tok] = runner;
constructors[tok] = constructor;
CHECK_FILTER(filter);
CHECK_HOOK(tok);
- syslog(LOG_INFO, "hook %s registered for filter type %s", name,
+ syslog(LOG_DEBUG, "hook %s registered for filter type %s", name,
ftokens[filter]);
hooks[filter][tok] = true;
if (!tcbdbopen(config->awl_db, path, BDBOWRITER | BDBOCREAT)) {
tcbdbdel(config->awl_db);
config->awl_db = NULL;
+ return false;
}
- return false;
}
snprintf(path, sizeof(path), "%s/%sgreylist.db", directory, prefix);
/* OK.
*/
+ syslog(LOG_INFO, "client whitelisted");
return true;
}
}
/* OK
*/
+ syslog(LOG_INFO, "client whitelisted");
return true;
}
/* DUNNO
*/
+ syslog(LOG_INFO, "client greylisted");
return false;
}
|| start_listener(port) < 0) {
return EXIT_FAILURE;
}
- return server_loop(query_starter, (delete_client_t)query_delete,
- policy_run, NULL);
+ {
+ int res = server_loop(query_starter, (delete_client_t)query_delete,
+ policy_run, config);
+ config_delete(&config);
+ return res;
+ }
}