diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-13 12:06:30 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-13 12:06:30 +0100 |
commit | a9bc3d63a38ab46217303b09f8b03d0215c2f5ea (patch) | |
tree | de01b01d314e914e8f949145ae6931c59396913c /src/plugins/regexp.c | |
parent | ff3053a983825f2a6c1dc8799f6ec9b337eed224 (diff) | |
download | rspamd-a9bc3d63a38ab46217303b09f8b03d0215c2f5ea.tar.gz rspamd-a9bc3d63a38ab46217303b09f8b03d0215c2f5ea.zip |
[Minor] Use struct to pass parameters to process_atom() functions
Diffstat (limited to 'src/plugins/regexp.c')
-rw-r--r-- | src/plugins/regexp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index 915305aa3..92cccc338 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -433,7 +433,12 @@ process_regexp_item (struct rspamd_task *task, void *user_data) else { /* Process expression */ if (item->expr) { - res = rspamd_process_expression (item->expr, 0, task); + struct rspamd_expr_process_data process_data; + memset (&process_data, 0, sizeof process_data); + + process_data.task = task; + + res = rspamd_process_expression (item->expr, &process_data); } else { msg_warn_task ("FIXME: %s symbol is broken with new expressions", |