aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-17 16:38:21 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-17 16:38:21 +0000
commitf26ac3c80484ba541633906f97be8a33b4cdbd2d (patch)
tree531190ced7e42dad5bc1b9bc7c2444e4ea2b94c4
parent3d2b7274a1adda138488140f688e724f7d994ba1 (diff)
downloadrspamd-f26ac3c80484ba541633906f97be8a33b4cdbd2d.tar.gz
rspamd-f26ac3c80484ba541633906f97be8a33b4cdbd2d.zip
[Minor] Another id==0 issue
-rw-r--r--src/libserver/symbols_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c
index 18593fa5c..d86a2b6f4 100644
--- a/src/libserver/symbols_cache.c
+++ b/src/libserver/symbols_cache.c
@@ -2330,7 +2330,7 @@ rspamd_symbols_cache_disable_symbol_checkpoint (struct rspamd_task *task,
id = rspamd_symbols_cache_find_symbol_parent (cache, symbol);
- if (id > 0) {
+ if (id >= 0) {
/* Set executed and finished flags */
item = g_ptr_array_index (cache->items_by_id, id);
@@ -2362,7 +2362,7 @@ rspamd_symbols_cache_enable_symbol_checkpoint (struct rspamd_task *task,
id = rspamd_symbols_cache_find_symbol_parent (cache, symbol);
- if (id > 0) {
+ if (id >= 0) {
/* Set executed and finished flags */
item = g_ptr_array_index (cache->items_by_id, id);