summaryrefslogtreecommitdiffstats
path: root/src/libutil/multipattern.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-27 11:14:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-27 11:14:46 +0100
commit24a0be9cf3f7aa22160a43e06fa94924b7e7065a (patch)
tree89165a2be9b2eaafa96f266675913f9925cfc8d7 /src/libutil/multipattern.c
parent71246a1a926cc088de211b5a87a6ed5eacd87270 (diff)
downloadrspamd-24a0be9cf3f7aa22160a43e06fa94924b7e7065a.tar.gz
rspamd-24a0be9cf3f7aa22160a43e06fa94924b7e7065a.zip
[Minor] Fix re matching when len == 0
Diffstat (limited to 'src/libutil/multipattern.c')
-rw-r--r--src/libutil/multipattern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/multipattern.c b/src/libutil/multipattern.c
index 363cd800f..6eec009b3 100644
--- a/src/libutil/multipattern.c
+++ b/src/libutil/multipattern.c
@@ -611,7 +611,7 @@ rspamd_multipattern_lookup (struct rspamd_multipattern *mp,
g_assert (mp != NULL);
- if (mp->cnt == 0 || !mp->compiled) {
+ if (mp->cnt == 0 || !mp->compiled || len == 0) {
return 0;
}