]> source.dussan.org Git - rspamd.git/commitdiff
Fix regexp_search invocation.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 30 Jun 2015 12:33:35 +0000 (13:33 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 30 Jun 2015 12:49:25 +0000 (13:49 +0100)
src/libmime/mime_expressions.c
src/libutil/expression.c
src/plugins/surbl.c

index 6152032a25a5810ae66419e7f0c39c18411ea278..5b52cb8e0564636898c9252f69802d7e8ac4aac3 100644 (file)
@@ -732,7 +732,7 @@ rspamd_mime_regexp_element_process (struct rspamd_task *task,
                len = max_re_data;
        }
 
-       while (rspamd_regexp_search (re->regexp, data, len, &start, &end, raw)) {
+       while (rspamd_regexp_search (re->regexp, data, len, &start, &end, raw, NULL)) {
                r++;
 
                if (!re->is_multiple) {
@@ -1783,7 +1783,7 @@ match_smtp_data (struct rspamd_task *task,
 
                if ((r = rspamd_task_re_cache_check (task,
                                rspamd_regexp_get_pattern (re))) == -1) {
-                       r = rspamd_regexp_search (re, what, 0, NULL, NULL, FALSE);
+                       r = rspamd_regexp_search (re, what, 0, NULL, NULL, FALSE, NULL);
                        rspamd_task_re_cache_add (task, rspamd_regexp_get_pattern (re), r);
                }
                return r;
@@ -1976,7 +1976,7 @@ rspamd_content_type_compare_param (struct rspamd_task * task,
                                        if ((r = rspamd_task_re_cache_check (task,
                                                        rspamd_regexp_get_pattern (re))) == -1) {
                                                r = rspamd_regexp_search (re, param_data, 0,
-                                                               NULL, NULL, FALSE);
+                                                               NULL, NULL, FALSE, NULL);
                                                rspamd_task_re_cache_add (task,
                                                                rspamd_regexp_get_pattern (re), r);
                                        }
@@ -2150,7 +2150,7 @@ rspamd_content_type_check (struct rspamd_task *task,
                                if ((r = rspamd_task_re_cache_check (task,
                                                rspamd_regexp_get_pattern (re))) == -1) {
                                        r = rspamd_regexp_search (re, param_data, 0,
-                                                       NULL, NULL, FALSE);
+                                                       NULL, NULL, FALSE, NULL);
                                        rspamd_task_re_cache_add (task,
                                                        rspamd_regexp_get_pattern (re), r);
                                }
@@ -2216,7 +2216,7 @@ compare_subtype (struct rspamd_task *task, GMimeContentType * ct,
                if ((r = rspamd_task_re_cache_check (task,
                                rspamd_regexp_get_pattern (re))) == -1) {
                        r = rspamd_regexp_search (re, ct->subtype, 0,
-                                       NULL, NULL, FALSE);
+                                       NULL, NULL, FALSE, NULL);
                        rspamd_task_re_cache_add (task,
                                        rspamd_regexp_get_pattern (re), r);
                }
@@ -2277,7 +2277,7 @@ common_has_content_part (struct rspamd_task * task,
                        if ((r = rspamd_task_re_cache_check (task,
                                        rspamd_regexp_get_pattern (re))) == -1) {
                                r = rspamd_regexp_search (re, ct->type, 0,
-                                               NULL, NULL, FALSE);
+                                               NULL, NULL, FALSE, NULL);
                                /* Also check subtype and length of the part */
                                if (r && param_subtype) {
                                        r = compare_len (part, min_len, max_len) &&
index 7faebb5476432156b76694d4466ed72990cce615..6e58fa40ddd77c5d2759b6fe9f9f0840cc8ed053 100644 (file)
@@ -593,7 +593,7 @@ rspamd_parse_expression (const gchar *line, gsize len,
                                        state = PARSE_OP;
                                }
                                else if (rspamd_regexp_search (num_re, p, end - p, NULL, NULL,
-                                               FALSE)) {
+                                               FALSE, NULL)) {
                                        c = p;
                                        state = PARSE_LIM;
                                }
index e8e7ea7bb10a7a53b67721d3d884a7cfcdc113f0..245d1cedc1db60cf08ac24b81498466140e0a174 100644 (file)
@@ -1098,7 +1098,7 @@ surbl_tree_url_callback (gpointer key, gpointer value, void *data)
                                        }
                                }
                                else if (rspamd_regexp_search (re, url->string, 0,
-                                               NULL, NULL, TRUE)) {
+                                               NULL, NULL, TRUE, NULL)) {
                                        found = TRUE;
                                }