FIB: adj src assert fix part 2

Change-Id: Ic112180e53a55993b06ba18102202d6ac5854def
Signed-off-by: Neale Ranns <nranns@cisco.com>
This commit is contained in:
Neale Ranns
2018-12-23 08:57:27 -08:00
parent 3c514d5516
commit d482336380

View 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);
/*