diff options
Diffstat (limited to 'src/libutil/map_helpers.c')
-rw-r--r-- | src/libutil/map_helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/map_helpers.c b/src/libutil/map_helpers.c index 964e4d98c..aaf771b5c 100644 --- a/src/libutil/map_helpers.c +++ b/src/libutil/map_helpers.c @@ -1252,12 +1252,12 @@ rspamd_match_regexp_map_all (struct rspamd_regexp_map_helper *map, gboolean validated = FALSE; struct rspamd_map_helper_value *val; - g_assert (in != NULL); - if (map == NULL || map->regexps == NULL || len == 0) { return NULL; } + g_assert (in != NULL); + if (map->map_flags & RSPAMD_REGEXP_MAP_FLAG_UTF) { if (g_utf8_validate (in, len, NULL)) { validated = TRUE; |