]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Another id==0 issue
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 17 Mar 2018 16:38:21 +0000 (16:38 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 17 Mar 2018 16:38:21 +0000 (16:38 +0000)
src/libserver/symbols_cache.c

index 18593fa5c75c5e5ce5d2f1840ee8eeb6843f3ad5..d86a2b6f42b2996d63d9c11018ad0fd0619f75d9 100644 (file)
@@ -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);