diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-17 16:38:21 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-17 16:38:21 +0000 |
commit | f26ac3c80484ba541633906f97be8a33b4cdbd2d (patch) | |
tree | 531190ced7e42dad5bc1b9bc7c2444e4ea2b94c4 | |
parent | 3d2b7274a1adda138488140f688e724f7d994ba1 (diff) | |
download | rspamd-f26ac3c80484ba541633906f97be8a33b4cdbd2d.tar.gz rspamd-f26ac3c80484ba541633906f97be8a33b4cdbd2d.zip |
[Minor] Another id==0 issue
-rw-r--r-- | src/libserver/symbols_cache.c | 4 |
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); |