]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Another stupid misprint
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 4 Jul 2019 20:10:47 +0000 (21:10 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 4 Jul 2019 20:10:47 +0000 (21:10 +0100)
src/libserver/rspamd_symcache.c

index 4bc2a8522ff21a1b842b9a6ade285978a5e44b99..d6fa726c6b7799ff40ee452c89f88eb0ee970d64 100644 (file)
@@ -1309,7 +1309,7 @@ rspamd_symcache_validate_cb (gpointer k, gpointer v, gpointer ud)
 
        if (item->is_virtual) {
                if (!(item->type & SYMBOL_TYPE_GHOST)) {
-                       g_assert (item->specific.virtual.parent != 1);
+                       g_assert (item->specific.virtual.parent != -1);
                        g_assert (item->specific.virtual.parent < (gint) cache->items_by_id->len);
                        parent = g_ptr_array_index (cache->items_by_id,
                                        item->specific.virtual.parent);