From 512fa656a3aa4588aafd5b0cd12bdf075d4fcd70 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 19 May 2016 13:36:49 +0300 Subject: [PATCH] [Fix] Do not even try pcre in case of regexp maps --- src/libutil/map.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libutil/map.c b/src/libutil/map.c index 1d84e305f..d7f509325 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -2064,6 +2064,8 @@ rspamd_match_regexp_map (struct rspamd_regexp_map *map, res = 1; ret = g_ptr_array_index (map->values, i); } + + return ret; } #endif -- 2.39.5