FIB: adj src assert fix part 2
[vpp.git] / src / vnet / fib / fib_entry_src_adj.c
index 57a802d..14bc1c4 100644 (file)
@@ -292,8 +292,15 @@ fib_entry_src_adj_deactivate (fib_entry_src_t *src,
     /*
      * remove the depednecy on the covering entry
      */
-    cover = fib_entry_get(src->u.adj.fesa_cover);
+    if (FIB_NODE_INDEX_INVALID == src->u.adj.fesa_cover)
+    {
+        /*
+         * this is the case if the entry is in the non-forwarding trie
+         */
+        return;
+    }
 
+    cover = fib_entry_get(src->u.adj.fesa_cover);
     fib_entry_cover_untrack(cover, src->u.adj.fesa_sibling);
 
     /*