diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-26 16:29:21 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-26 16:29:21 +0000 |
commit | b56b7b3f7f0e48bdc32c06bab78c8fe7ce981509 (patch) | |
tree | 272fb122680e3e0f42820a0866c19fe9199060ef /src/libserver/re_cache.h | |
parent | 01fda151e4995e8ed3e5c5ec31eb856a399ce14b (diff) | |
download | rspamd-b56b7b3f7f0e48bdc32c06bab78c8fe7ce981509.tar.gz rspamd-b56b7b3f7f0e48bdc32c06bab78c8fe7ce981509.zip |
Fix issue with non-unique regexps in the cache
Diffstat (limited to 'src/libserver/re_cache.h')
-rw-r--r-- | src/libserver/re_cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/re_cache.h b/src/libserver/re_cache.h index 062982df2..ae5cf9019 100644 --- a/src/libserver/re_cache.h +++ b/src/libserver/re_cache.h @@ -63,7 +63,8 @@ struct rspamd_re_cache *rspamd_re_cache_new (void); * @param type_data associated data with the type (e.g. header name) * @param datalen associated data length */ -void rspamd_re_cache_add (struct rspamd_re_cache *cache, rspamd_regexp_t *re, +rspamd_regexp_t * + rspamd_re_cache_add (struct rspamd_re_cache *cache, rspamd_regexp_t *re, enum rspamd_re_type type, gpointer type_data, gsize datalen); /** |