summaryrefslogtreecommitdiffstats
path: root/src/symbols_cache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-14 19:11:19 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-14 19:11:19 +0400
commita0f41f7c5712e73e8aa521f2064bc53be3315d0a (patch)
tree147e4d8956a5a3b85e0ecc15b9fcbe29742e4e5c /src/symbols_cache.c
parenta90c7d7a12561845e3371efc6803b1ecf6ad7d89 (diff)
downloadrspamd-a0f41f7c5712e73e8aa521f2064bc53be3315d0a.tar.gz
rspamd-a0f41f7c5712e73e8aa521f2064bc53be3315d0a.zip
* New system of classifiers interface and statfiles processing
* Fix sample config * Fix compile warnings * Fix building without lua support * Fix bugs with nrcpt header parsing and symbols cache loading (by Anton Nekhoroshikh)
Diffstat (limited to 'src/symbols_cache.c')
-rw-r--r--src/symbols_cache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/symbols_cache.c b/src/symbols_cache.c
index 1d5d38d4d..cc7e8a1b1 100644
--- a/src/symbols_cache.c
+++ b/src/symbols_cache.c
@@ -360,6 +360,9 @@ call_symbol_callback (struct worker_task *task, struct symbols_cache *cache, str
item = &cache->items[0];
}
else {
+ if (cache == NULL) {
+ return FALSE;
+ }
/* Next pointer */
if (*saved_item - cache->items >= cache->used_items - 1) {
/* No more items in cache */