if (*param_pattern == '/') {
/* This is regexp, so compile and create g_regexp object */
if ((re = re_cache_check (param_pattern)) == NULL) {
- re = parse_regexp (task->task_pool, param_pattern);
+ re = parse_regexp (task->cfg->cfg_pool, param_pattern);
if (re == NULL) {
msg_warn ("rspamd_content_type_compare_param: cannot compile regexp for function");
return FALSE;
if (*param_pattern == '/') {
/* This is regexp, so compile and create g_regexp object */
if ((re = re_cache_check (param_pattern)) == NULL) {
- re = parse_regexp (task->task_pool, param_pattern);
+ re = parse_regexp (task->cfg->cfg_pool, param_pattern);
if (re == NULL) {
msg_warn ("rspamd_content_type_compare_param: cannot compile regexp for function");
return FALSE;
if (*param_pattern == '/') {
/* This is regexp, so compile and create g_regexp object */
if ((re = re_cache_check (param_pattern)) == NULL) {
- re = parse_regexp (task->task_pool, param_pattern);
+ re = parse_regexp (task->cfg->cfg_pool, param_pattern);
if (re == NULL) {
msg_warn ("rspamd_content_type_compare_param: cannot compile regexp for function");
return FALSE;
if (*subtype == '/') {
/* This is regexp, so compile and create g_regexp object */
if ((re = re_cache_check (subtype)) == NULL) {
- re = parse_regexp (task->task_pool, subtype);
+ re = parse_regexp (task->cfg->cfg_pool, subtype);
if (re == NULL) {
msg_warn ("compare_subtype: cannot compile regexp for function");
return FALSE;
if (*param_type == '/') {
/* This is regexp, so compile and create g_regexp object */
if ((re = re_cache_check (param_type)) == NULL) {
- re = parse_regexp (task->task_pool, param_type);
+ re = parse_regexp (task->cfg->cfg_pool, param_type);
if (re == NULL) {
msg_warn ("rspamd_has_content_part: cannot compile regexp for function");
cur = g_list_next (cur);