diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-27 11:14:46 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-27 11:14:46 +0100 |
commit | 24a0be9cf3f7aa22160a43e06fa94924b7e7065a (patch) | |
tree | 89165a2be9b2eaafa96f266675913f9925cfc8d7 /src/libutil/multipattern.c | |
parent | 71246a1a926cc088de211b5a87a6ed5eacd87270 (diff) | |
download | rspamd-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.c | 2 |
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; } |