aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/re_cache.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-26 16:29:21 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-26 16:29:21 +0000
commitb56b7b3f7f0e48bdc32c06bab78c8fe7ce981509 (patch)
tree272fb122680e3e0f42820a0866c19fe9199060ef /src/libserver/re_cache.h
parent01fda151e4995e8ed3e5c5ec31eb856a399ce14b (diff)
downloadrspamd-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.h3
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);
/**