From b56b7b3f7f0e48bdc32c06bab78c8fe7ce981509 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 26 Dec 2015 16:29:21 +0000 Subject: Fix issue with non-unique regexps in the cache --- src/libserver/re_cache.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libserver/re_cache.h') 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); /** -- cgit v1.2.3