aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-02 16:24:26 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-02 16:24:26 +0300
commit03490c09f41a52e59d5375c6b83872b725c96943 (patch)
treea653ae04ff231e583a5b74d55b818b7a922c0ff9 /src
parent7910d2525344868b9d7694deb18a16f76756ad94 (diff)
downloadrspamd-03490c09f41a52e59d5375c6b83872b725c96943.tar.gz
rspamd-03490c09f41a52e59d5375c6b83872b725c96943.zip
* Fix misprint
Diffstat (limited to 'src')
-rw-r--r--src/plugins/surbl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index dc136206d..1940a5f57 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -189,8 +189,8 @@ surbl_module_config (struct config_file *cfg)
if ((str = strchr (cur->param, '_')) != NULL) {
new_suffix = memory_pool_alloc (surbl_module_ctx->surbl_pool, sizeof (struct suffix_item));
*str = '\0';
- new_suffix->suffix = memory_pool_strdup (surbl_module_ctx->surbl_pool, cur->param);
new_suffix->symbol = memory_pool_strdup (surbl_module_ctx->surbl_pool, str + 1);
+ new_suffix->suffix = memory_pool_strdup (surbl_module_ctx->surbl_pool, cur->value);
msg_debug ("surbl_module_config: add new surbl suffix: %s with symbol: %s",
new_suffix->suffix, new_suffix->symbol);
*str = '_';
@@ -590,16 +590,17 @@ surbl_test_url (struct worker_task *task)
msg_debug ("surbl_test_url: check url %s", struri (url));
if (surbl_module_ctx->use_redirector) {
register_redirector_call (url, task);
+ task->save.saved++;
}
else {
if (task->worker->srv->cfg->memcached_servers_num > 0) {
register_memcached_call (url, task);
+ task->save.saved++;
}
else {
make_surbl_requests (url, task);
}
}
- task->save.saved++;
}
return 0;
}