summaryrefslogtreecommitdiffstats
path: root/src/plugins/regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-03-23 17:50:28 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-03-23 17:50:28 +0300
commitf4dfc1a11a29280e7a3202165b8f41d775f06c08 (patch)
tree7138f33d6bcd7d0fcac1e2df62a67db45914b84a /src/plugins/regexp.c
parent788168c8e8c0b79e377a07c670b922a4eebe44fd (diff)
downloadrspamd-f4dfc1a11a29280e7a3202165b8f41d775f06c08.tar.gz
rspamd-f4dfc1a11a29280e7a3202165b8f41d775f06c08.zip
* Fix freeing of module parameters (they should NOT be freed)
* Add minimum hash length to check with fuzzy module as well as whitelisting for fuzzy checks: min_length = "300"; <- messages with more than 300 characters would be checked with fuzzy check whitelist = "http://somehost/somefile"; <- ip addresses whitelisted * Extend comments about module options for comfortable usage
Diffstat (limited to 'src/plugins/regexp.c')
-rw-r--r--src/plugins/regexp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index 7be53e252..d44983785 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -158,14 +158,12 @@ regexp_module_config (struct config_file *cfg)
if ((value = get_module_opt (cfg, "regexp", "metric")) != NULL) {
regexp_module_ctx->metric = memory_pool_strdup (regexp_module_ctx->regexp_pool, value);
- g_free (value);
}
else {
regexp_module_ctx->metric = DEFAULT_METRIC;
}
if ((value = get_module_opt (cfg, "regexp", "statfile_prefix")) != NULL) {
regexp_module_ctx->statfile_prefix = memory_pool_strdup (regexp_module_ctx->regexp_pool, value);
- g_free (value);
}
else {
regexp_module_ctx->statfile_prefix = DEFAULT_STATFILE_PREFIX;