summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-30 17:39:10 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-30 17:39:10 +0400
commit17b59dcc033cf8627a057b76b4cfc2735d9d1c82 (patch)
treef18a9866f7c842ffa0ccd17a4baf374959be5151 /src/plugins
parente7f2df7d45962a98f5caeb5c664fc6c1310f3112 (diff)
downloadrspamd-17b59dcc033cf8627a057b76b4cfc2735d9d1c82.tar.gz
rspamd-17b59dcc033cf8627a057b76b4cfc2735d9d1c82.zip
* Fix some more bugs with empty parts
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/regexp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index 45f07f9e7..3613b3f62 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -512,7 +512,7 @@ optimize_regexp_expression (struct expression **e, GQueue *stack, gboolean res)
}
static gboolean
-process_regexp_expression (struct expression *expr, struct worker_task *task)
+process_regexp_expression (struct expression *expr, char *symbol, struct worker_task *task)
{
GQueue *stack;
gsize cur, op1, op2;
@@ -598,7 +598,7 @@ process_regexp_expression (struct expression *expr, struct worker_task *task)
}
}
else {
- msg_warn ("process_regexp_expression: regexp expression seems to be invalid: empty stack at the end of expression");
+ msg_warn ("process_regexp_expression: regexp expression seems to be invalid: empty stack at the end of expression, symbol %s", symbol);
}
g_queue_free (stack);
@@ -611,7 +611,7 @@ process_regexp_item (struct worker_task *task, void *user_data)
{
struct regexp_module_item *item = user_data;
- if (process_regexp_expression (item->expr, task)) {
+ if (process_regexp_expression (item->expr, item->symbol, task)) {
insert_result (task, regexp_module_ctx->metric, item->symbol, 1, NULL);
}
}
@@ -647,7 +647,7 @@ rspamd_regexp_match_number (struct worker_task *task, GList *args)
}
}
else {
- if (process_regexp_expression (cur->data, task)) {
+ if (process_regexp_expression (cur->data, "regexp_match_number", task)) {
res ++;
}
if (res >= param_count) {